summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorWei Huang <wehuang@redhat.com>2014-08-13 12:06:14 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2014-08-19 15:12:28 +0200
commitdc9b2d933a1d5782b70977024f862759c8ebb2f7 (patch)
tree015dfa6138a56f51d7fde58a7cd6576cf7c3e3c3 /arch/x86/kvm/svm.c
parent30d1e0e806e5b2fadc297ba78f2d7afd6ba309cf (diff)
downloadop-kernel-dev-dc9b2d933a1d5782b70977024f862759c8ebb2f7.zip
op-kernel-dev-dc9b2d933a1d5782b70977024f862759c8ebb2f7.tar.gz
KVM: SVM: add rdmsr support for AMD event registers
Current KVM only supports RDMSR for K7_EVNTSEL0 and K7_PERFCTR0 MSRs. Reading the rest MSRs will trigger KVM to inject #GP into guest VM. This causes a warning message "Failed to access perfctr msr (MSR c0010001 is ffffffffffffffff)" on AMD host. This patch adds RDMSR support for all K7_EVNTSELn and K7_PERFCTRn registers and thus supresses the warning message. Signed-off-by: Wei Huang <wehuang@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud