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-changelog

[Xen-changelog] [xen-3.4-testing] vmx: Disable vPMU feature by default

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] vmx: Disable vPMU feature by default
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 03 Nov 2009 01:46:09 -0800
Delivery-date: Tue, 03 Nov 2009 01:46:23 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1257241012 0
# Node ID 96463eab24a17a1ae836a6757529341b552623ea
# Parent  d626b239fed17f3c937231318d3a71409045bc35
vmx: Disable vPMU feature by default

Signed-off-by: Shan Haitao <haitao.shan@xxxxxxxxx>
xen-unstable changeset:   20394:7d7631b57d19
xen-unstable date:        Tue Nov 03 08:40:40 2009 +0000
---
 xen/arch/x86/hvm/vmx/vpmu.c |    6 ++++++
 1 files changed, 6 insertions(+)

diff -r d626b239fed1 -r 96463eab24a1 xen/arch/x86/hvm/vmx/vpmu.c
--- a/xen/arch/x86/hvm/vmx/vpmu.c       Thu Oct 29 15:02:30 2009 +0000
+++ b/xen/arch/x86/hvm/vmx/vpmu.c       Tue Nov 03 09:36:52 2009 +0000
@@ -30,6 +30,9 @@
 #include <public/sched.h>
 #include <public/hvm/save.h>
 #include <asm/hvm/vmx/vpmu.h>
+
+static int __read_mostly opt_vpmu_enabled;
+boolean_param("vpmu", opt_vpmu_enabled);
 
 int vpmu_do_wrmsr(struct cpu_user_regs *regs)
 {
@@ -79,6 +82,9 @@ void vpmu_initialise(struct vcpu *v)
 {
     struct vpmu_struct *vpmu = vcpu_vpmu(v);
 
+    if ( !opt_vpmu_enabled )
+        return;
+
     if ( vpmu->flags & VPMU_CONTEXT_ALLOCATED )
         vpmu_destroy(v);
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.4-testing] vmx: Disable vPMU feature by default, Xen patchbot-3.4-testing <=