aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2009-03-20 03:09:00 -0400
committerAvi Kivity <avi@redhat.com>2009-06-10 04:48:30 -0400
commit7fe29e0faacb650d31b9e9f538203a157bec821d (patch)
treee9e4575c24450b8aac827bd29e4e90e837a12554 /arch/x86/kvm/x86.c
parentf00be0cae4e6ad0a8c7be381c6d9be3586800b3e (diff)
KVM: x86: Ignore reads to EVNTSEL MSRs
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>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 41123fc8613e..c0ae5e6cba9b 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -895,6 +895,8 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)
895 case MSR_IA32_LASTINTFROMIP: 895 case MSR_IA32_LASTINTFROMIP:
896 case MSR_IA32_LASTINTTOIP: 896 case MSR_IA32_LASTINTTOIP:
897 case MSR_VM_HSAVE_PA: 897 case MSR_VM_HSAVE_PA:
898 case MSR_P6_EVNTSEL0:
899 case MSR_P6_EVNTSEL1:
898 data = 0; 900 data = 0;
899 break; 901 break;
900 case MSR_MTRRcap: 902 case MSR_MTRRcap: