kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Gleb Natapov <gleb@redhat.com>, kvm <kvm@vger.kernel.org>
Subject: Re: [PATCH] KVM: nVMX: Report 2MB EPT pages as supported
Date: Mon, 28 Oct 2013 13:57:10 +0100	[thread overview]
Message-ID: <526E5F26.4010005@redhat.com> (raw)
In-Reply-To: <5267D1CF.5000501@siemens.com>

Il 23/10/2013 15:40, Jan Kiszka ha scritto:
> As long as the hardware provides us 2MB EPT pages, we can also expose
> them to the guest because our shadow EPT code already supports this
> feature.
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>  arch/x86/kvm/vmx.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
> index 06fd762..feef3a1 100644
> --- a/arch/x86/kvm/vmx.c
> +++ b/arch/x86/kvm/vmx.c
> @@ -2261,7 +2261,8 @@ static __init void nested_vmx_setup_ctls_msrs(void)
>  		/* nested EPT: emulate EPT also to L1 */
>  		nested_vmx_secondary_ctls_high |= SECONDARY_EXEC_ENABLE_EPT;
>  		nested_vmx_ept_caps = VMX_EPT_PAGE_WALK_4_BIT |
> -			 VMX_EPTP_WB_BIT | VMX_EPT_INVEPT_BIT;
> +			 VMX_EPTP_WB_BIT | VMX_EPT_2MB_PAGE_BIT |
> +			 VMX_EPT_INVEPT_BIT;
>  		nested_vmx_ept_caps &= vmx_capability.ept;
>  		/*
>  		 * Since invept is completely emulated we support both global
> 

Applied to kvm.git queue, thanks.

Paolo

  reply	other threads:[~2013-10-28 12:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-23 13:40 [PATCH] KVM: nVMX: Report 2MB EPT pages as supported Jan Kiszka
2013-10-28 12:57 ` Paolo Bonzini [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-10-23 13:35 Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=526E5F26.4010005@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=gleb@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).