]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: x86: Ignore reads to EVNTSEL MSRs
authorAmit Shah <amit.shah@redhat.com>
Fri, 20 Mar 2009 07:09:00 +0000 (12:39 +0530)
committerAvi Kivity <avi@redhat.com>
Sun, 22 Mar 2009 09:11:01 +0000 (11:11 +0200)
We ignore writes to the performance counters and performance event
selector registers already. Kaspersky antivirus reads the eventsel
MSR causing it to crash with the current behaviour.

Return 0 as data when the eventsel registers are read to stop the
crash.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c

index 2ea82629471a5f2c2bc21c4210e17cdbd8ecdb61..03431b22345895fac12aa2d8863fb78cc1035f52 100644 (file)
@@ -891,6 +891,8 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)
        case MSR_IA32_LASTINTFROMIP:
        case MSR_IA32_LASTINTTOIP:
        case MSR_VM_HSAVE_PA:
+       case MSR_P6_EVNTSEL0:
+       case MSR_P6_EVNTSEL1:
                data = 0;
                break;
        case MSR_MTRRcap: