hvm: vpmu: Enable HVM VPMU for AMD Family 12h and 14h processors
PATCH 1/1 hvm: vpmu: Enable HVM VPMU for AMD Family 12h and 14h processors
# HG changeset patch
# User Jacob Shin <[email protected]>
# Date 1305055595 18000
# Node ID d1f55c40ca0e5d21541ee4e884b630ba6322905e
# Parent 20443ead1d091f1b8e9cce367901a7ac0c6faef5
hvm: vpmu: Enable HVM VPMU for AMD Family 12h and 14h processors
HVM VPMU support can be enabled for AMD Family 12h and 14h processors by taking the same code path as 10h.
Signed-off-by Jacob Shin <[email protected]>
xen/arch/x86/hvm/svm/vpmu.c +2 -0
@@ -317,6 +317,8 @@ static void amd_vpmu_initialise(struct v k7_counters_mirrored =1 ;break ;case 0x10 : +case 0x12 : +case 0x14 :default : num_counters =F10H_NUM_COUNTERS ; counters =AMD_F10H_COUNTERS ;
xen/arch/x86/hvm/vpmu.c +2 -0
@@ -101,6 +101,8 @@ void vpmu_initialise(struct vcpu *v)switch ( family ) {case 0x10 : +case 0x12 : +case 0x14 :case 0x15 : vpmu->arch_vpmu_ops = &amd_vpmu_ops;break ;