diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2013-08-06 04:39:55 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-08-07 09:57:46 -0400 |
commit | ca72d970ff9aaf6f7e321ead9d4775c5aa0cdb0b (patch) | |
tree | fdb848278b41aac8e8a54222708ca12a3c196c04 | |
parent | 44811c02ed94abbf0b0978c8bcce4f2603b11651 (diff) |
KVM: nEPT: Advertise WB type EPTP
At least WB must be possible.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | 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 6d53dc33c0b0..c041023f5d8b 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) | |||
2251 | if (enable_ept) { | 2251 | if (enable_ept) { |
2252 | /* nested EPT: emulate EPT also to L1 */ | 2252 | /* nested EPT: emulate EPT also to L1 */ |
2253 | nested_vmx_secondary_ctls_high |= SECONDARY_EXEC_ENABLE_EPT; | 2253 | nested_vmx_secondary_ctls_high |= SECONDARY_EXEC_ENABLE_EPT; |
2254 | nested_vmx_ept_caps = VMX_EPT_PAGE_WALK_4_BIT; | 2254 | nested_vmx_ept_caps = VMX_EPT_PAGE_WALK_4_BIT | |
2255 | nested_vmx_ept_caps |= VMX_EPT_INVEPT_BIT; | 2255 | VMX_EPTP_WB_BIT | VMX_EPT_INVEPT_BIT; |
2256 | nested_vmx_ept_caps &= vmx_capability.ept; | 2256 | nested_vmx_ept_caps &= vmx_capability.ept; |
2257 | /* | 2257 | /* |
2258 | * Since invept is completely emulated we support both global | 2258 | * Since invept is completely emulated we support both global |