[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] vmx: Disable vPMU feature by default
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1257237640 0 # Node ID 7d7631b57d1966ba2fe7ccf4333f87d8a77d2fb4 # Parent 830bda7a9c7565469abb5946c03ccad450197349 vmx: Disable vPMU feature by default Signed-off-by: Shan Haitao <haitao.shan@xxxxxxxxx> --- xen/arch/x86/hvm/vmx/vpmu.c | 6 ++++++ 1 files changed, 6 insertions(+) diff -r 830bda7a9c75 -r 7d7631b57d19 xen/arch/x86/hvm/vmx/vpmu.c --- a/xen/arch/x86/hvm/vmx/vpmu.c Tue Nov 03 08:39:21 2009 +0000 +++ b/xen/arch/x86/hvm/vmx/vpmu.c Tue Nov 03 08:40:40 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |