[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.