summaryrefslogtreecommitdiff
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2017-08-24 21:51:28 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2017-10-12 15:01:52 +0300
commit0e1252dc46b9c9a805d704cf3a123132ebb0f8cf (patch)
treeb8e7b67533382bba557af1d69e8551f893ded6e7 /arch/x86/kvm
parentf2d1da696f515a4ad2df3f03ad922306867c391a (diff)
downloadlinux-0e1252dc46b9c9a805d704cf3a123132ebb0f8cf.tar.xz
KVM: VMX: drop enable_ept check from ept_sync_context()
This function is only called with enable_ept. Reviewed-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/vmx.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index ecac113fd0db..c757070a32a7 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -1604,12 +1604,10 @@ static inline void ept_sync_global(void)
static inline void ept_sync_context(u64 eptp)
{
- if (enable_ept) {
- if (cpu_has_vmx_invept_context())
- __invept(VMX_EPT_EXTENT_CONTEXT, eptp, 0);
- else
- ept_sync_global();
- }
+ if (cpu_has_vmx_invept_context())
+ __invept(VMX_EPT_EXTENT_CONTEXT, eptp, 0);
+ else
+ ept_sync_global();
}
static __always_inline void vmcs_check16(unsigned long field)