|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] Disable vPMU feature by default
Hi, Keir,
This little patch will disable vPMU (PMU passthrough to HVM guests) by default.
If someone is really want to use this feature, he can use "vpmu=1" to turn it
on manually.
Signed-off-by: Shan Haitao <haitao.shan@xxxxxxxxx>
diff -r 19f0e0867a18 xen/arch/x86/hvm/vmx/vpmu.c
--- a/xen/arch/x86/hvm/vmx/vpmu.c Mon Nov 02 09:38:34 2009 +0000
+++ b/xen/arch/x86/hvm/vmx/vpmu.c Mon Nov 02 23:16:29 2009 +0800
@@ -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 = 0;
+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;
+
Best Regards
Shan Haitao
disable_vpmu.patch
Description: disable_vpmu.patch
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] Disable vPMU feature by default,
Shan, Haitao <=
|
|
|
|
|