From: Jan Kiszka Date: Tue, 6 Aug 2013 08:39:55 +0000 (+0200) Subject: KVM: nEPT: Advertise WB type EPTP X-Git-Tag: v3.12-rc1~143^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca72d970ff9aaf6f7e321ead9d4775c5aa0cdb0b;p=platform%2Fkernel%2Flinux-stable.git KVM: nEPT: Advertise WB type EPTP At least WB must be possible. Signed-off-by: Jan Kiszka Reviewed-by: Gleb Natapov Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 6d53dc3..c041023 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -2251,8 +2251,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