All of lore.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 12:22:00 +0900	[thread overview]
Message-ID: <5189C4D8.6060705@ce.jp.nec.com> (raw)
In-Reply-To: <518913BE.8060300@redhat.com>

On 05/07/13 23:46, Paolo Bonzini wrote:
> Il 07/05/2013 14:06, Gleb Natapov ha scritto:
>> On Tue, May 07, 2013 at 08:05:27PM +0900, Jun'ichi Nomura wrote:
>>> On 05/07/13 19:35, Gleb Natapov wrote:
>>>> On Tue, May 07, 2013 at 06:55:23PM +0900, Jun'ichi Nomura wrote:
>>>>> With v3.9 kernel and Nehalem CPU (i.e. unrestricted_guest=N),
>>>>> a guest stuck during boot (seemingly in BIOS).
>>>>> When setting emulate_invalid_guest_state=0, it does boot.
>>>>> (With v3.8 kernel and older, the guest used to boot fine by default.)
>>>>>
>>>>> The userspace is qemu-kvm of RHEL6.
>>>>> It seems the guest boots up fine with upstream qemu 1.4.1.
>>>>>
>>>>> Is this a kernel bug? Or is the userspace just too old to run on v3.9?
>>>>>
>>>>>
>>>> It should work. What seabios version are you using?
>>>
>>> It's seabios-0.6.1.2-26.el6.
>>> (and qemu-kvm-0.12.1.2-2.355.el6)
>>>
>> Works for me, but it looks like in your case the bios is in option rom.
> 
> What version of vgabios, too?

vgabios-0.6b-3.7.el6
sgabios-bin-0-0.3.20110621svn.el6

>> What are you booting from? What's the qemu command line?

>From disk image.

Command line is like this:
  /usr/libexec/qemu-kvm -name vm12 -S -M rhel6.3.0 -enable-kvm -m 1024 -smp 2,sockets=2,cores=1,threads=1 -uuid 539b7cdb-7afc-4237-bdbc-8ddbdf5e0204 -nographic -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/vm12.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/dev/kvmvg/vm12,if=none,id=drive-virtio-disk0,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3

When I edit VM definition so that qemu-kvm is invoked without '-nographic',
the guest boots fine.

>> 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

-- 
Jun'ichi Nomura, NEC Corporation


  parent reply	other threads:[~2013-05-08  3:22 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 [this message]
2013-05-08  7:34           ` Jun'ichi Nomura
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=5189C4D8.6060705@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.