summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/cpuid.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2011-11-10 14:57:22 +0200
committerAvi Kivity <avi@redhat.com>2011-12-27 11:24:29 +0200
commitf5132b01386b5a67f1ff673bb2b96a507a3f7e41 (patch)
tree1891d74d54aadda63c0fc6ce77a62025404f4757 /arch/x86/kvm/cpuid.c
parent893420822192f717af6fde927c9e78c9b82f8327 (diff)
downloadlinux-f5132b01386b5a67f1ff673bb2b96a507a3f7e41.tar.gz
linux-f5132b01386b5a67f1ff673bb2b96a507a3f7e41.tar.bz2
linux-f5132b01386b5a67f1ff673bb2b96a507a3f7e41.zip
KVM: Expose a version 2 architectural PMU to a guests
Use perf_events to emulate an architectural PMU, version 2. Based on PMU version 1 emulation by Avi Kivity. [avi: adjust for cpuid.c] [jan: fix anonymous field initialization for older gcc] Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/cpuid.c')
-rw-r--r--arch/x86/kvm/cpuid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index ca63032bf03d..e70be46f50fc 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -45,6 +45,8 @@ void kvm_update_cpuid(struct kvm_vcpu *vcpu)
else
apic->lapic_timer.timer_mode_mask = 1 << 17;
}
+
+ kvm_pmu_cpuid_update(vcpu);
}
static int is_efer_nx(void)