diff options
author | Davidlohr Bueso <dave@gnu.org> | 2012-01-17 08:09:50 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-05 07:52:43 -0500 |
commit | e2358851efbcdc34583ee11971a6e4d587ea8bf9 (patch) | |
tree | 9938df0dd0863d7f3b70539f668751288d60bf0f /arch/x86 | |
parent | e4b35cc960bf216548516d8e39f5e364cfbbc86b (diff) |
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>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/svm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index fce3ba0f2079..7bbd17cc3488 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -182,11 +182,13 @@ static bool npt_enabled = true; | |||
182 | #else | 182 | #else |
183 | static bool npt_enabled; | 183 | static bool npt_enabled; |
184 | #endif | 184 | #endif |
185 | static int npt = 1; | ||
186 | 185 | ||
186 | /* allow nested paging (virtualized MMU) for all guests */ | ||
187 | static int npt = true; | ||
187 | module_param(npt, int, S_IRUGO); | 188 | module_param(npt, int, S_IRUGO); |
188 | 189 | ||
189 | static int nested = 1; | 190 | /* allow nested virtualization in KVM/SVM */ |
191 | static int nested = true; | ||
190 | module_param(nested, int, S_IRUGO); | 192 | module_param(nested, int, S_IRUGO); |
191 | 193 | ||
192 | static void svm_flush_tlb(struct kvm_vcpu *vcpu); | 194 | static void svm_flush_tlb(struct kvm_vcpu *vcpu); |