Skip to content
Commit 22d48b2d authored by Matthias Lange's avatar Matthias Lange Committed by Paolo Bonzini
Browse files

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: default avatarMatthias Lange <matthias.lange@kernkonzept.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 5f7552d4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment