WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] hvm: vpmu: Enable HVM VPMU for AMD Family 12h and 14

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] hvm: vpmu: Enable HVM VPMU for AMD Family 12h and 14h processors
From: Jacob Shin <jacob.shin@xxxxxxx>
Date: Tue, 10 May 2011 14:29:53 -0500
Delivery-date: Tue, 10 May 2011 12:31:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jacob Shin <jacob.shin@xxxxxxx>
# 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 <jacob.shin@xxxxxxx>

diff -r 20443ead1d09 -r d1f55c40ca0e xen/arch/x86/hvm/svm/vpmu.c
--- a/xen/arch/x86/hvm/svm/vpmu.c       Tue May 10 14:04:10 2011 -0500
+++ b/xen/arch/x86/hvm/svm/vpmu.c       Tue May 10 14:26:35 2011 -0500
@@ -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;
diff -r 20443ead1d09 -r d1f55c40ca0e xen/arch/x86/hvm/vpmu.c
--- a/xen/arch/x86/hvm/vpmu.c   Tue May 10 14:04:10 2011 -0500
+++ b/xen/arch/x86/hvm/vpmu.c   Tue May 10 14:26:35 2011 -0500
@@ -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;


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] hvm: vpmu: Enable HVM VPMU for AMD Family 12h and 14h processors, Jacob Shin <=