Skip to content

Commit e235885

Browse files
Davidlohr Buesoavikivity
authored andcommitted
KVM: SVM: comment nested paging and virtualization module parameters
Also use true instead of 1 for enabling by default. Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
1 parent e4b35cc commit e235885

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎arch/x86/kvm/svm.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,13 @@ static bool npt_enabled = true;
182182
#else
183183
static bool npt_enabled;
184184
#endif
185-
static int npt = 1;
186185

186+
/* allow nested paging (virtualized MMU) for all guests */
187+
static int npt = true;
187188
module_param(npt, int, S_IRUGO);
188189

189-
static int nested = 1;
190+
/* allow nested virtualization in KVM/SVM */
191+
static int nested = true;
190192
module_param(nested, int, S_IRUGO);
191193

192194
static void svm_flush_tlb(struct kvm_vcpu *vcpu);

0 commit comments

Comments
 (0)