aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2013-07-18 18:57:02 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-19 12:24:45 -0400
commit103af0a98788592b76ee69a13948b6b3036d7e18 (patch)
tree9a35a89a9262dc320939d951a628b313919018e1 /arch/x86/include/asm/kvm_host.h
parent21feb4eb64e21f8dc91136b91ee886b978ce6421 (diff)
perf, kvm: Support the in_tx/in_tx_cp modifiers in KVM arch perfmon emulation v5
[KVM maintainers: The underlying support for this is in perf/core now. So please merge this patch into the KVM tree.] This is not arch perfmon, but older CPUs will just ignore it. This makes it possible to do at least some TSX measurements from a KVM guest v2: Various fixes to address review feedback v3: Ignore the bits when no CPUID. No #GP. Force raw events with TSX bits. v4: Use reserved bits for #GP v5: Remove obsolete argument Acked-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index f87f7fcefa0a..531f47cbf1f8 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -323,6 +323,7 @@ struct kvm_pmu {
323 u64 global_ovf_ctrl; 323 u64 global_ovf_ctrl;
324 u64 counter_bitmask[2]; 324 u64 counter_bitmask[2];
325 u64 global_ctrl_mask; 325 u64 global_ctrl_mask;
326 u64 reserved_bits;
326 u8 version; 327 u8 version;
327 struct kvm_pmc gp_counters[INTEL_PMC_MAX_GENERIC]; 328 struct kvm_pmc gp_counters[INTEL_PMC_MAX_GENERIC];
328 struct kvm_pmc fixed_counters[INTEL_PMC_MAX_FIXED]; 329 struct kvm_pmc fixed_counters[INTEL_PMC_MAX_FIXED];