All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 116731] New: KVM guest fails to boot OVMF firmware with SMP enabled
@ 2016-04-19 17:46 bugzilla-daemon
  2016-04-19 17:47 ` [Bug 116731] " bugzilla-daemon
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-04-19 17:46 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=116731

            Bug ID: 116731
           Summary: KVM guest fails to boot OVMF firmware with SMP enabled
           Product: Virtualization
           Version: unspecified
    Kernel Version: 4.2 and later
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: kvm
          Assignee: virtualization_kvm@kernel-bugs.osdl.org
          Reporter: jonathan.n.boeing@gmail.com
        Regression: No

If I enable SMP and an OVMF firmware in my VM, QEMU either hangs at boot or
dies with the error message: KVM: entry failed, hardware error 0x80000021

A minimal QEMU command line to repro is:

qemu-system-x86_64 -enable-kvm -smp cpus=2 -drive
if=pflash,format=raw,file=OVMF.fd

Running host kernel 4.4.6, and I bisected the failure to OVMF commit 94941c8:
UefiCpuPkg: CpuDxe: broadcast MTRR changes to APs

Doing some debugging, I built the latest OVMF from git and bisected the failure
to kernel commit (merged for 4.2rc1) d28bc9d: KVM: x86: INIT and reset
sequences are different

To clarify, the failing config is:
Host kernel d28bc9d+ (~4.2rc1), OVMF 94941c8+, and SMP enabled

Working configs are:
Host kernels 4.1-4.4, OVMF tip, and SMP disabled
Host kernels 4.1-4.4, SeaBIOS (instead of OVMF), and SMP enabled
Host kernel 4.1, OVMF tip, and SMP enabled
Host kernels 4.1-4.4, OVMF prior to 94941c8, and SMP enabled

The host system is running a quad-core Intel Penryn CPU (which supports VMX but
not EPT). Per OVMF dev Laszlo Ersek, the failure is related to lacking EPT
support.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 116731] KVM guest fails to boot OVMF firmware with SMP enabled
  2016-04-19 17:46 [Bug 116731] New: KVM guest fails to boot OVMF firmware with SMP enabled bugzilla-daemon
@ 2016-04-19 17:47 ` bugzilla-daemon
  2016-04-19 20:53 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-04-19 17:47 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=116731

jonathan.n.boeing@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://github.com/tianocor
                   |                            |e/edk2/issues/80

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 116731] KVM guest fails to boot OVMF firmware with SMP enabled
  2016-04-19 17:46 [Bug 116731] New: KVM guest fails to boot OVMF firmware with SMP enabled bugzilla-daemon
  2016-04-19 17:47 ` [Bug 116731] " bugzilla-daemon
@ 2016-04-19 20:53 ` bugzilla-daemon
  2016-04-19 22:04 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-04-19 20:53 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=116731

--- Comment #1 from Radim Krčmář <rkrcmar@redhat.com> ---
Created attachment 213331
  --> https://bugzilla.kernel.org/attachment.cgi?id=213331&action=edit
Partial revert of d28bc9d for current KVM.

Does the guest boot if you apply the attached patch on top of current KVM?

And if you discard the "init_event = false;" hunk from the patch?

Thanks.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 116731] KVM guest fails to boot OVMF firmware with SMP enabled
  2016-04-19 17:46 [Bug 116731] New: KVM guest fails to boot OVMF firmware with SMP enabled bugzilla-daemon
  2016-04-19 17:47 ` [Bug 116731] " bugzilla-daemon
  2016-04-19 20:53 ` bugzilla-daemon
@ 2016-04-19 22:04 ` bugzilla-daemon
  2016-04-22 14:35 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-04-19 22:04 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=116731

--- Comment #2 from jonathan.n.boeing@gmail.com ---
I tested against mainline 4.4.7, is that ok? Otherwise, by "current KVM" do you
mean from git://git.kernel.org/pub/scm/virt/kvm/kvm.git ?

With the full patch applied, the guest failed to boot.

With just the bottom hunk applied, the guest booted.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 116731] KVM guest fails to boot OVMF firmware with SMP enabled
  2016-04-19 17:46 [Bug 116731] New: KVM guest fails to boot OVMF firmware with SMP enabled bugzilla-daemon
                   ` (2 preceding siblings ...)
  2016-04-19 22:04 ` bugzilla-daemon
@ 2016-04-22 14:35 ` bugzilla-daemon
  2016-04-22 22:08 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-04-22 14:35 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=116731

--- Comment #3 from Radim Krčmář <rkrcmar@redhat.com> ---
4.4.7 is ok, thank you for testing!   Yes, current KVM is that one.  Latest
Linus' tree counts too.

The patch is bad as I erroneously didn't revert the "vmx->vcpu.arch.cr0 = cr0;"
line and cr0 is not initialized there ... the shame made me build OVMF and I
tried to reproduce on latest unpatched KVM and it worked fine -- does it work
for you too?

Thanks.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 116731] KVM guest fails to boot OVMF firmware with SMP enabled
  2016-04-19 17:46 [Bug 116731] New: KVM guest fails to boot OVMF firmware with SMP enabled bugzilla-daemon
                   ` (3 preceding siblings ...)
  2016-04-22 14:35 ` bugzilla-daemon
@ 2016-04-22 22:08 ` bugzilla-daemon
  2016-06-07 18:50 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-04-22 22:08 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=116731

--- Comment #4 from jonathan.n.boeing@gmail.com ---
I built from commit 5e1b59a in kvm/master and the guest was unable to boot.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 116731] KVM guest fails to boot OVMF firmware with SMP enabled
  2016-04-19 17:46 [Bug 116731] New: KVM guest fails to boot OVMF firmware with SMP enabled bugzilla-daemon
                   ` (4 preceding siblings ...)
  2016-04-22 22:08 ` bugzilla-daemon
@ 2016-06-07 18:50 ` bugzilla-daemon
  2016-06-08 11:04 ` bugzilla-daemon
  2016-06-10  6:38 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-06-07 18:50 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=116731

--- Comment #5 from Laszlo Ersek <lersek@redhat.com> ---
Radim,

am I right to think that this is fixed by commit f24632475d4f in v4.7-rc1, and
by commit 3bae61327149 in v4.6.1?

If that's the case, we should probably close this report.

Thanks!
Laszlo

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 116731] KVM guest fails to boot OVMF firmware with SMP enabled
  2016-04-19 17:46 [Bug 116731] New: KVM guest fails to boot OVMF firmware with SMP enabled bugzilla-daemon
                   ` (5 preceding siblings ...)
  2016-06-07 18:50 ` bugzilla-daemon
@ 2016-06-08 11:04 ` bugzilla-daemon
  2016-06-10  6:38 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-06-08 11:04 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=116731

Paolo Bonzini <bonzini@gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bonzini@gnu.org
         Resolution|---                         |CODE_FIX

--- Comment #6 from Paolo Bonzini <bonzini@gnu.org> ---
Yes, you're right.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 116731] KVM guest fails to boot OVMF firmware with SMP enabled
  2016-04-19 17:46 [Bug 116731] New: KVM guest fails to boot OVMF firmware with SMP enabled bugzilla-daemon
                   ` (6 preceding siblings ...)
  2016-06-08 11:04 ` bugzilla-daemon
@ 2016-06-10  6:38 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-06-10  6:38 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=116731

--- Comment #7 from jonathan.n.boeing@gmail.com ---
I confirmed it's working on 4.6.2

Thanks!

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-06-10  6:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-19 17:46 [Bug 116731] New: KVM guest fails to boot OVMF firmware with SMP enabled bugzilla-daemon
2016-04-19 17:47 ` [Bug 116731] " bugzilla-daemon
2016-04-19 20:53 ` bugzilla-daemon
2016-04-19 22:04 ` bugzilla-daemon
2016-04-22 14:35 ` bugzilla-daemon
2016-04-22 22:08 ` bugzilla-daemon
2016-06-07 18:50 ` bugzilla-daemon
2016-06-08 11:04 ` bugzilla-daemon
2016-06-10  6:38 ` bugzilla-daemon

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.