Skip to contentSkip to conversation

kvm/pmu: fix mapping of unhalted_reference_cycles event

PATCH New Stephane Eranian 1 participant 1 message Feb 20, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm/pmu: fix mapping of unhalted_reference_cycles event

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

arch/x86/kvm/pmu.c +1 -1
index 5c4f631..db79c00 100644
@@ -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 */