Bug 116731
Summary: | KVM guest fails to boot OVMF firmware with SMP enabled | ||
---|---|---|---|
Product: | Virtualization | Reporter: | jonathan.n.boeing |
Component: | kvm | Assignee: | virtualization_kvm |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | bonzini, laszlo.ersek, rkrcmar |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
See Also: | https://github.com/tianocore/edk2/issues/80 | ||
Kernel Version: | 4.2 and later | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | Partial revert of d28bc9d for current KVM. |
Description
jonathan.n.boeing
2016-04-19 17:46:59 UTC
Created attachment 213331 [details]
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.
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. 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. I built from commit 5e1b59a in kvm/master and the guest was unable to boot. 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 Yes, you're right. I confirmed it's working on 4.6.2 Thanks! |