commit | 22d48b2d2aa0b078816eaa1e15e485811a2d03fa | [log] [tgz] |
---|---|---|
author | Matthias Lange <matthias.lange@kernkonzept.com> | Thu Jun 26 13:50:15 2014 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri Jul 11 09:11:59 2014 +0200 |
tree | 807ae664ffd82a085d085dedba9295b96e857322 | |
parent | 5f7552d4a56c21a882c9854ac63c6eb73ca7d7c8 [diff] |
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>