Skip to contentSkip to conversation

KVM: SVM: comment nested paging and virtualization module parameters

PATCH Superseded Davidlohr Bueso 2 participants 2 messages Jan 13, 2012 – Jan 16, 2012

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: SVM: comment nested paging and virtualization module parameters

From: Davidlohr Bueso <[email protected]>

Also use true instead of 1 for enabling by default.

---
 arch/x86/kvm/svm.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
arch/x86/kvm/svm.c +4 -2
index 5fa553b..3c9b0dc 100644
@@ -176,11 +176,13 @@ static bool npt_enabled = true;
 #else
 static bool npt_enabled;
 #endif
-static int npt = 1;
 
+/* disable nested paging (virtualized MMU) for all guests */
+static int npt = true;
 module_param(npt, int, S_IRUGO);
 
-static int nested = 1;
+/* allow nested virtualization in KVM/SVM */
+static int nested = true;
 module_param(nested, int, S_IRUGO);
 
 static void svm_flush_tlb(struct kvm_vcpu *vcpu);
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 14 lines · Davidlohr Bueso

From: Davidlohr Bueso <[email protected]>

Also use true instead of 1 for enabling by default.

---
 arch/x86/kvm/svm.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
arch/x86/kvm/svm.c +0 -0
index 5fa553b..3c9b0dc 100644

arch/x86/kvm/svm.c static bool npt_enabled = true; · line 182

Quoted 8 lines
arch/x86/kvm/svm.c +2 -1
@@ -176,11 +176,13 @@ static bool npt_enabled = true;
 #else
 static bool npt_enabled;
 #endif
-static int npt = 1;
 
+/* disable nested paging (virtualized MMU) for all guests */
+static int npt = true;
 module_param(npt, int, S_IRUGO);

Should be "allow nested paging"...

Quoted 6 lines
arch/x86/kvm/svm.c +2 -1
-static int nested = 1;
+/* allow nested virtualization in KVM/SVM */
+static int nested = true;
 module_param(nested, int, S_IRUGO);
 
 static void svm_flush_tlb(struct kvm_vcpu *vcpu);