]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Fake emulate Intel perfctr MSRs
authorChris Lalancette <clalance@redhat.com>
Fri, 20 Jun 2008 07:51:30 +0000 (09:51 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 20 Jul 2008 09:42:36 +0000 (12:42 +0300)
commite8444e3abdf3e61a40eb37e6e0ecef1ef607f6f7
tree9808aec9287308eef34ecce2a5a179cae776755d
parent357bd812b709fd8671012ed27347e98cb36ec2a6
KVM: VMX: Fake emulate Intel perfctr MSRs

Older linux guests (in this case, 2.6.9) can attempt to
access the performance counter MSRs without a fixup section, and injecting
a GPF kills the guest.  Work around by allowing the guest to write those MSRs.

Tested by me on RHEL-4 i386 and x86_64 guests, as well as F-9 guests.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/vmx.c