]> bbs.cooldavid.org Git - net-next-2.6.git/commit
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>
Wed, 10 Jun 2009 08:48:30 +0000 (11:48 +0300)
commit7fe29e0faacb650d31b9e9f538203a157bec821d
treee9e4575c24450b8aac827bd29e4e90e837a12554
parentf00be0cae4e6ad0a8c7be381c6d9be3586800b3e
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>
arch/x86/kvm/x86.c