]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: svm: writes to MSR_K7_HWCR generates GPE in guest
authorMatthias Lange <matthias.lange@kernkonzept.com>
Thu, 26 Jun 2014 11:50:15 +0000 (13:50 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Jul 2014 07:11:59 +0000 (09:11 +0200)
commit2f737b787486669f04eef6bf2646296d957f9105
tree807ae664ffd82a085d085dedba9295b96e857322
parent5eb0cb841de40ac4a2248db8dcba8f361486b42d
KVM: svm: writes to MSR_K7_HWCR generates GPE in guest

Since commit 575203 the MCE subsystem in the Linux kernel for AMD sets bit 18
in MSR_K7_HWCR. Running such a kernel as a guest in KVM on an AMD host results
in a GPE injected into the guest because kvm_set_msr_common returns 1. This
patch fixes this by masking bit 18 from the MSR value desired by the guest.

Signed-off-by: Matthias Lange <matthias.lange@kernkonzept.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c