public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Jun'ichi Nomura" <j-nomura@ce.jp.nec.com>
To: Paolo Bonzini <pbonzini@redhat.com>, Gleb Natapov <gleb@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: regression in v3.9? a guest stuck in BIOS if emulate_invalid_guest_state=Y
Date: Wed, 08 May 2013 16:34:03 +0900	[thread overview]
Message-ID: <5189FFEB.9000503@ce.jp.nec.com> (raw)
In-Reply-To: <5189C4D8.6060705@ce.jp.nec.com>

On 05/08/13 12:22, Jun'ichi Nomura wrote:
>> Il 07/05/2013 14:06, Gleb Natapov ha scritto:
>>> What is the output of "virsh qemu-monitor-command vm12 --hmp x/i $pc"
>>> when it hangs?
> 
> # virsh qemu-monitor-command vm12 --hmp x/4i \$pc
> 0x00000000000c06ca:  aam    $0xa
> 0x00000000000c06cc:  mov    %ax,%bx
> 0x00000000000c06ce:  mov    %bh,%al
> 0x00000000000c06d0:  aam    $0xa
> 
> # virsh qemu-monitor-command vm12 --hmp x/8b \$pc
> 00000000000c06ca: 0xd4 0x0a 0x89 0xc3 0x88 0xf8 0xd4 0x0a

I could also reproduce the problem with following:

# dd if=/dev/zero of=/root/empty.img bs=1M count=1
# /usr/libexec/qemu-kvm -enable-kvm -nographic -nodefconfig -nodefaults -chardev socket,id=cmon,host=localhost,port=8888,server,nowait -mon chardev=cmon,mode=readline -drive file=/root/empty.img -chardev stdio,id=ser0 -device isa-serial,chardev=ser0

With v3.8 kernel, it reaches to the point showing "No bootable device"
(as expected).
With v3.9 kernel, no visible characters appear on console.

EIP of the stalled guest points to other instruction than the
previously reported case though:

(qemu) info registers
info registers
EAX=f000e81b EBX=00000130 ECX=0000fa2b EDX=0000031b
ESI=000000ed EDI=00000050 EBP=00000000 ESP=00006eaa
EIP=00000564 EFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0040 00000400 ffffffff 00809300
CS =c000 000c0000 ffffffff 00809b00
SS =0000 00000000 ffffffff 00809300
DS =c000 000c0000 ffffffff 00809300
FS =0000 00000000 ffffffff 00809300
GS =0000 00000000 ffffffff 00809300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     000fc558 00000037
IDT=     00000000 000003ff
CR0=00000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000 
DR6=ffff0ff0 DR7=00000400
FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
(qemu) 
(qemu) x/8b $pc
x/8b $pc
00000000000c0564: 0xd7 0x1f 0x24 0x7f 0x88 0xc4 0x88 0xd0
(qemu) 
(qemu) x/i $pc
x/i $pc
0x00000000000c0564:  xlat   %ds:(%bx)

-- 
Jun'ichi Nomura, NEC Corporation

  reply	other threads:[~2013-05-08  7:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-07  9:55 regression in v3.9? a guest stuck in BIOS if emulate_invalid_guest_state=Y Jun'ichi Nomura
2013-05-07 10:35 ` Gleb Natapov
2013-05-07 11:05   ` Jun'ichi Nomura
2013-05-07 12:06     ` Gleb Natapov
2013-05-07 14:46       ` Paolo Bonzini
2013-05-07 15:04         ` Gleb Natapov
2013-05-07 16:11           ` Paolo Bonzini
2013-05-08  3:22         ` Jun'ichi Nomura
2013-05-08  7:34           ` Jun'ichi Nomura [this message]
2013-05-08  8:29             ` Paolo Bonzini
2013-05-10  2:51 ` Jun'ichi Nomura

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=5189FFEB.9000503@ce.jp.nec.com \
    --to=j-nomura@ce.jp.nec.com \
    --cc=gleb@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    /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