]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: VMX: Make module parameters readable
authorAvi Kivity <avi@redhat.com>
Mon, 23 Mar 2009 13:41:17 +0000 (15:41 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 23 Mar 2009 13:41:17 +0000 (15:41 +0200)
Useful to see how the module was loaded.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c

index 58524431b90954d7b24394b91af4bc5fbe163bc9..d3919ac6432a8c4cccab62f5c405ceb1a31915e3 100644 (file)
@@ -39,19 +39,19 @@ MODULE_AUTHOR("Qumranet");
 MODULE_LICENSE("GPL");
 
 static int bypass_guest_pf = 1;
-module_param(bypass_guest_pf, bool, 0);
+module_param(bypass_guest_pf, bool, S_IRUGO);
 
 static int enable_vpid = 1;
-module_param(enable_vpid, bool, 0);
+module_param(enable_vpid, bool, 0444);
 
 static int flexpriority_enabled = 1;
-module_param(flexpriority_enabled, bool, 0);
+module_param(flexpriority_enabled, bool, S_IRUGO);
 
 static int enable_ept = 1;
-module_param(enable_ept, bool, 0);
+module_param(enable_ept, bool, S_IRUGO);
 
 static int emulate_invalid_guest_state = 0;
-module_param(emulate_invalid_guest_state, bool, 0);
+module_param(emulate_invalid_guest_state, bool, S_IRUGO);
 
 struct vmcs {
        u32 revision_id;