KVM: Move performance counter MSR access interception to generic x86 path
authorAndre Przywara <andre.przywara@amd.com>
Fri, 12 Jun 2009 20:01:29 +0000 (22:01 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:54 +0000 (08:32 +0300)
commit71db602322b1197e7951655c46339324b6208bf9
tree202daeb54a853ea09775d0f66c62a58c025a9997
parent2920d7285740582d6101f32c37d8d54f82531e1e
KVM: Move performance counter MSR access interception to generic x86 path

The performance counter MSRs are different for AMD and Intel CPUs and they
are chosen mainly by the CPUID vendor string. This patch catches writes to
all addresses (regardless of VMX/SVM path) and handles them in the generic
MSR handler routine. Writing a 0 into the event select register is something
we perfectly emulate ;-), so don't print out a warning to dmesg in this
case.
This fixes booting a 64bit Windows guest with an AMD CPUID on an Intel host.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
This page took 0.024647 seconds and 5 git commands to generate.