KVM: Expose a version 2 architectural PMU to a guests
authorGleb Natapov <gleb@redhat.com>
Thu, 10 Nov 2011 12:57:22 +0000 (14:57 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 27 Dec 2011 09:24:29 +0000 (11:24 +0200)
commitf5132b01386b5a67f1ff673bb2b96a507a3f7e41
tree1891d74d54aadda63c0fc6ce77a62025404f4757
parent893420822192f717af6fde927c9e78c9b82f8327
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>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/Kconfig
arch/x86/kvm/Makefile
arch/x86/kvm/cpuid.c
arch/x86/kvm/pmu.c [new file with mode: 0644]
arch/x86/kvm/x86.c
include/linux/kvm_host.h