Skip to content

kvm: fix cr0 initialization on SIPI reset

Eduardo Habkost kvm 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3kvm: vmx: use macros instead of hex value on cr0 initializationarch/x86/kvm/vmx.c+1 -10 replies
2/3kvm: svm: reset cr0 properly on vcpu resetarch/x86/kvm/svm.c+5 -45 replies
3/3kvm: svm: init_vmcb(): remove redundant save->cr0 initializationarch/x86/kvm/svm.c+0 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] kvm: fix cr0 initialization on SIPI reset

Hi,

The following patches fix a bug on the SIPI reset code for SVM. cr0 was not being reset properly, making KVM keep the vcpu on paging mode, thus not being able to run the real-mode boostrap code. This bug was reported at:
https://bugzilla.redhat.com/show_bug.cgi?id=525699

The first patch is cosmetic, and it just changes the vmx code to use the same macros when initializing cr0, instead of a hardcoded hex value.

The patches were tested by running a RHEL-5.4 guest and and triggering the SIPI reset by offlining and onlining cpus on the guest. They were tested on both NPT-enabled and NPT-disabled cases.

Signature · 1 line
Eduardo