All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm/pmu: fix mapping of unhalted_reference_cycles event
@ 2014-02-20 17:45 Stephane Eranian
  0 siblings, 0 replies; only message in thread
From: Stephane Eranian @ 2014-02-20 17:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: peterz, mingo, gleb


The pseudo encoding for unhalted_reference_cycles
is 0x0300. The KVM table was mapping it to 0x3000
This patch fixes this.

Signed-off-by: Stephane Eranian <eranian@google.com>

diff --git a/arch/x86/kvm/pmu.c b/arch/x86/kvm/pmu.c
index 5c4f631..db79c00 100644
--- a/arch/x86/kvm/pmu.c
+++ b/arch/x86/kvm/pmu.c
@@ -33,7 +33,7 @@ static struct kvm_arch_event_perf_mapping {
 	[4] = { 0x2e, 0x41, PERF_COUNT_HW_CACHE_MISSES },
 	[5] = { 0xc4, 0x00, PERF_COUNT_HW_BRANCH_INSTRUCTIONS },
 	[6] = { 0xc5, 0x00, PERF_COUNT_HW_BRANCH_MISSES },
-	[7] = { 0x00, 0x30, PERF_COUNT_HW_REF_CPU_CYCLES },
+	[7] = { 0x00, 0x03, PERF_COUNT_HW_REF_CPU_CYCLES },
 };
 
 /* mapping between fixed pmc index and arch_events array */

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-02-20 17:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-20 17:45 [PATCH] kvm/pmu: fix mapping of unhalted_reference_cycles event Stephane Eranian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.