KVM: x86/vPMU: Enable PMU handling for AMD PERFCTRn and EVNTSELn MSRs
authorWei Huang <wei@redhat.com>
Fri, 12 Jun 2015 05:34:56 +0000 (01:34 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Jun 2015 12:12:15 +0000 (14:12 +0200)
commit6912ac326d3aab9c0774ebec99f60a73fd04a520
tree80827ab0fe037da2e3f2d122e65ecdde2236f31d
parentca724305a2b02abcbecbf22577536fc8e965ab4f
KVM: x86/vPMU: Enable PMU handling for AMD PERFCTRn and EVNTSELn MSRs

This patch enables AMD guest VM to access (R/W) PMU related MSRs, which
include PERFCTR[0..3] and EVNTSEL[0..3].

Reviewed-by: Joerg Roedel <jroedel@suse.de>
Tested-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Wei Huang <wei@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c