From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH 1/7] KVM: nEPT: Advertise WB type EPTP Date: Mon, 5 Aug 2013 16:12:32 +0300 Message-ID: <20130805131232.GH10891@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paolo Bonzini , kvm , Xiao Guangrong , Jun Nakajima , Yang Zhang To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:57856 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751674Ab3HENMh (ORCPT ); Mon, 5 Aug 2013 09:12:37 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Aug 04, 2013 at 07:49:00PM +0200, Jan Kiszka wrote: > From: Jan Kiszka > > At least WB must be possible. > > Signed-off-by: Jan Kiszka Reviewed-by: Gleb Natapov > --- > arch/x86/kvm/vmx.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c > index e51bf4a..53050a0 100644 > --- a/arch/x86/kvm/vmx.c > +++ b/arch/x86/kvm/vmx.c > @@ -2250,8 +2250,8 @@ static __init void nested_vmx_setup_ctls_msrs(void) > if (enable_ept) { > /* 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; > - nested_vmx_ept_caps |= VMX_EPT_INVEPT_BIT; > + nested_vmx_ept_caps = VMX_EPT_PAGE_WALK_4_BIT | > + VMX_EPTP_WB_BIT | VMX_EPT_INVEPT_BIT; > nested_vmx_ept_caps &= vmx_capability.ept; > /* > * Since invept is completely emulated we support both global > -- > 1.7.3.4 -- Gleb.