diff mbox

KVM: x86: Ignore reads to K7 EVNTSEL MSRs

Message ID 1245052534-10221-1-git-send-email-amit.shah@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Amit Shah June 15, 2009, 7:55 a.m. UTC
In commit 7fe29e0faacb650d31b9e9f538203a157bec821d we ignored the
reads to the P6 EVNTSEL MSRs. That fixed crashes on Intel machines.

Ignore the reads to K7 EVNTSEL MSRs as well to fix this on AMD
hosts.

This fixes Kaspersky antivirus crashing Windows guests on AMD hosts.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 arch/x86/kvm/x86.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Avi Kivity June 15, 2009, 12:38 p.m. UTC | #1
On 06/15/2009 10:55 AM, Amit Shah wrote:
> In commit 7fe29e0faacb650d31b9e9f538203a157bec821d we ignored the
> reads to the P6 EVNTSEL MSRs. That fixed crashes on Intel machines.
>
> Ignore the reads to K7 EVNTSEL MSRs as well to fix this on AMD
> hosts.
>
> This fixes Kaspersky antivirus crashing Windows guests on AMD hosts.
>    

Applied, thanks.
diff mbox

Patch

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 1b91ea7..c5b44c9 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -957,6 +957,7 @@  int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)
 	case MSR_VM_HSAVE_PA:
 	case MSR_P6_EVNTSEL0:
 	case MSR_P6_EVNTSEL1:
+	case MSR_K7_EVNTSEL0:
 		data = 0;
 		break;
 	case MSR_MTRRcap: