diff options
author | Wei Huang <wehuang@redhat.com> | 2015-06-19 14:54:23 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-06-19 18:16:29 +0300 |
commit | 474a5bb944d2ad308a1360dcae72b16b8eecd250 (patch) | |
tree | 5da7334c0f015f03f519ba47b26ffc4ac0208a5a /arch/x86/kvm/pmu.c | |
parent | c6702c9dcfe72b63a85e7ae35533c11e2b7c1040 (diff) | |
download | linux-474a5bb944d2ad308a1360dcae72b16b8eecd250.tar.xz |
KVM: x86/vPMU: introduce pmu.h header
This will be used for private function used by AMD- and Intel-specific
PMU implementations.
Signed-off-by: Wei Huang <wei@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/pmu.c')
-rw-r--r-- | arch/x86/kvm/pmu.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/kvm/pmu.c b/arch/x86/kvm/pmu.c index d6a4506f62a8..3d2990207be2 100644 --- a/arch/x86/kvm/pmu.c +++ b/arch/x86/kvm/pmu.c @@ -19,13 +19,9 @@ #include "x86.h" #include "cpuid.h" #include "lapic.h" +#include "pmu.h" -static struct kvm_arch_event_perf_mapping { - u8 eventsel; - u8 unit_mask; - unsigned event_type; - bool inexact; -} arch_events[] = { +static struct kvm_event_hw_type_mapping arch_events[] = { /* Index must match CPUID 0x0A.EBX bit vector */ [0] = { 0x3c, 0x00, PERF_COUNT_HW_CPU_CYCLES }, [1] = { 0xc0, 0x00, PERF_COUNT_HW_INSTRUCTIONS }, |