KVM: VMX: add support for switching of PERF_GLOBAL_CTRL
authorGleb Natapov <gleb@redhat.com>
Wed, 5 Oct 2011 12:01:22 +0000 (14:01 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 17 Nov 2011 14:27:54 +0000 (16:27 +0200)
commit8bf00a529967dafbbb210b377c38a15834d1e979
tree10b03537524c8dcc14f9398e4890a2b450691d20
parent52e16b185fdd0aeb0522c203e944873e38ac1575
KVM: VMX: add support for switching of PERF_GLOBAL_CTRL

Some cpus have special support for switching PERF_GLOBAL_CTRL msr.
Add logic to detect if such support exists and works properly and extend
msr switching code to use it if available. Also extend number of generic
msr switching entries to 8.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c