Skip to contentSkip to conversation

Add Xenoprofile support for AMD Family16h

PATCH New [email protected] 1 participant 1 message Feb 8, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add Xenoprofile support for AMD Family16h

From: Suravee Suthikulpanit <[email protected]>

Add Xenoprofile support for AMD Family16h. The corresponded OProfile patch has already been submitted to OProfile mailing list.
(http://marc.info/?l=oprofile-list&m=136036136017302&w=2 ).

---
 xen/arch/x86/hvm/svm/vpmu.c     |    2 ++
 xen/arch/x86/oprofile/nmi_int.c |    4 ++++
 2 files changed, 6 insertions(+)
xen/arch/x86/hvm/svm/vpmu.c +2 -0
index 96eee8c..bf186fe 100644
@@ -314,6 +314,7 @@ static int amd_vpmu_initialise(struct vcpu *v)
 	 case 0x10:
 	 case 0x12:
 	 case 0x14:
+	 case 0x16:
 	 default:
 	     num_counters = F10H_NUM_COUNTERS;
 	     counters = AMD_F10H_COUNTERS;
@@ -375,6 +376,7 @@ int svm_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
     case 0x12:
     case 0x14:
     case 0x15:
+    case 0x16:
         ret = amd_vpmu_initialise(v);
         if ( !ret )
             vpmu->arch_vpmu_ops = &amd_vpmu_ops;
xen/arch/x86/oprofile/nmi_int.c +4 -0
index 0710db2..0bd9355 100644
@@ -415,6 +415,10 @@ static int __init nmi_init(void)
                                 model = &op_amd_fam15h_spec;
                                 cpu_type = "x86-64/family15h";
                                 break;
+                        case 0x16:
+                                model = &op_athlon_spec;
+                                cpu_type = "x86-64/family16h";
+                                break;
 			}
 			break;
 
Signature · 1 line
1.7.10.4