qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Andriy Gapon <avg@FreeBSD.org>
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Andreas Färber" <afaerber@suse.de>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] in_asm substitute for accel=kvm:tcg
Date: Sun, 22 Sep 2013 09:31:03 +0300	[thread overview]
Message-ID: <20130922063103.GA25202@redhat.com> (raw)
In-Reply-To: <523B393F.10203@FreeBSD.org>

On Thu, Sep 19, 2013 at 08:49:51PM +0300, Andriy Gapon wrote:
> on 19/09/2013 19:53 Paolo Bonzini said the following:
> > Il 19/09/2013 16:36, Andriy Gapon ha scritto:
> >> Not sure how the code ends up at 0x9315 after that.
> > 
> > Events are dropped, probably corresponding to more emulation.
> 
> I've got a trace without dropped events between the last "normal" instruction
> and the loop (and also including a snippet where the same code is executed
> without a problem):
Which kernel version is this? What BSD version?


> ...
> qemu-system-x86-12024 [003] 278157.048876: kvm_emulate_insn:     0:9366:b1 10
> (prot32)
>  qemu-system-x86-12024 [003] 278157.048877: kvm_entry:            vcpu 0
>  qemu-system-x86-12024 [003] 278157.048878: kvm_emulate_insn:     0:9368:8e d1
> (prot32)
>  qemu-system-x86-12024 [003] 278157.048880: kvm_entry:            vcpu 0
>  qemu-system-x86-12024 [003] 278157.048882: kvm_exit:             reason
> CR_ACCESS rip 0x9312 info 0 0
>  qemu-system-x86-12024 [003] 278157.048883: kvm_cr:               cr_write 0 = 0x10
>  qemu-system-x86-12024 [003] 278157.048885: kvm_entry:            vcpu 0
>  qemu-system-x86-12024 [003] 278157.048886: kvm_emulate_insn:     0:9315:ea 1a
> 93 00 00 (real)
>  qemu-system-x86-12024 [003] 278157.048887: kvm_entry:            vcpu 0
>  qemu-system-x86-12024 [003] 278157.048888: kvm_emulate_insn:     0:931a:31 c0
> (real)
> ... ...
>  qemu-system-x86-12024 [003] 278157.048990: kvm_set_irq:          gsi 4 level 0
> source 0
>  qemu-system-x86-12024 [003] 278157.048991: kvm_pic_set_irq:      chip 0 pin 4
> (edge|masked)
>  qemu-system-x86-12024 [003] 278157.048992: kvm_ioapic_set_irq:   pin 4 dst 0
> vec=0 (Fixed|physical|edge|masked)
>  qemu-system-x86-12024 [003] 278157.049001: kvm_entry:            vcpu 0
>  qemu-system-x86-12024 [003] 278157.049002: kvm_exit:             reason
> IO_INSTRUCTION rip 0x1e675 info 3fd0008 0
>  qemu-system-x86-12024 [003] 278157.049005: kvm_emulate_insn:     a000:1e675:ec
> (prot32)
>  qemu-system-x86-12024 [003] 278157.049005: kvm_pio:              pio_read at
> 0x3fd size 1 count 1
>  qemu-system-x86-12024 [003] 278157.049006: kvm_userspace_exit:   reason
> KVM_EXIT_IO (2)
>  qemu-system-x86-12024 [003] 278157.049024: kvm_entry:            vcpu 0
>  qemu-system-x86-12024 [003] 278157.049027: kvm_exit:             reason
> CR_ACCESS rip 0x9312 info 0 0
>  qemu-system-x86-12024 [003] 278157.049028: kvm_cr:               cr_write 0 = 0x10
>  qemu-system-x86-12024 [003] 278157.049030: kvm_entry:            vcpu 0
>  qemu-system-x86-12024 [003] 278157.049031: kvm_emulate_insn:     0:9315: (real)
>  qemu-system-x86-12024 [003] 278157.049033: kvm_emulate_insn:     0:9315: (real)
>  qemu-system-x86-12024 [003] 278157.049034: kvm_emulate_insn:     0:9315: (real)
> ...
> 
> It's strange that no instruction gets reported in those repeating "0:9315:
> (real)" lines.  It's like kvm is somehow losing track of what should be executed
> and just loops over the same ip without actually doing anything.
> 
> -- 
> Andriy Gapon

--
			Gleb.

  reply	other threads:[~2013-09-22  6:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-17 11:37 [Qemu-devel] in_asm substitute for accel=kvm:tcg Andriy Gapon
2013-09-17 12:32 ` Andreas Färber
2013-09-17 14:33   ` Andriy Gapon
2013-09-17 18:49     ` Gleb Natapov
2013-09-19 14:36       ` Andriy Gapon
2013-09-19 16:53         ` Paolo Bonzini
2013-09-19 17:18           ` Andriy Gapon
2013-09-19 17:26             ` Paolo Bonzini
2013-09-19 18:05               ` Andriy Gapon
2013-09-19 17:49           ` Andriy Gapon
2013-09-22  6:31             ` Gleb Natapov [this message]
2013-09-22  8:05               ` Andriy Gapon
2013-09-22  8:17                 ` Gleb Natapov
2013-09-22  9:41                   ` Andriy Gapon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130922063103.GA25202@redhat.com \
    --to=gleb@redhat.com \
    --cc=afaerber@suse.de \
    --cc=avg@FreeBSD.org \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).