linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] KVM: SVM: comment nested paging and virtualization module parameters
@ 2012-01-13 13:51 Davidlohr Bueso
  2012-01-16 10:22 ` Marcelo Tosatti
  0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2012-01-13 13:51 UTC (permalink / raw)
  To: Avi Kivity, Marcelo Tosatti; +Cc: KVM, lkml

From: Davidlohr Bueso <dave@gnu.org>

Also use true instead of 1 for enabling by default.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
 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 5fa553b..3c9b0dc 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -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);
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM: SVM: comment nested paging and virtualization module parameters
  2012-01-13 13:51 [PATCH] KVM: SVM: comment nested paging and virtualization module parameters Davidlohr Bueso
@ 2012-01-16 10:22 ` Marcelo Tosatti
  0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2012-01-16 10:22 UTC (permalink / raw)
  To: Davidlohr Bueso; +Cc: Avi Kivity, KVM, lkml

On Fri, Jan 13, 2012 at 02:51:56PM +0100, Davidlohr Bueso wrote:
> From: Davidlohr Bueso <dave@gnu.org>
> 
> Also use true instead of 1 for enabling by default.
> 
> Signed-off-by: Davidlohr Bueso <dave@gnu.org>
> ---
>  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 5fa553b..3c9b0dc 100644
> --- a/arch/x86/kvm/svm.c
> +++ b/arch/x86/kvm/svm.c
> @@ -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"...

> -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);


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-16 10:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-13 13:51 [PATCH] KVM: SVM: comment nested paging and virtualization module parameters Davidlohr Bueso
2012-01-16 10:22 ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).