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>
This commit is contained in:
parent
f2d1da696f
commit
0e1252dc46
|
@ -1604,12 +1604,10 @@ static inline void ept_sync_global(void)
|
||||||
|
|
||||||
static inline void ept_sync_context(u64 eptp)
|
static inline void ept_sync_context(u64 eptp)
|
||||||
{
|
{
|
||||||
if (enable_ept) {
|
if (cpu_has_vmx_invept_context())
|
||||||
if (cpu_has_vmx_invept_context())
|
__invept(VMX_EPT_EXTENT_CONTEXT, eptp, 0);
|
||||||
__invept(VMX_EPT_EXTENT_CONTEXT, eptp, 0);
|
else
|
||||||
else
|
ept_sync_global();
|
||||||
ept_sync_global();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static __always_inline void vmcs_check16(unsigned long field)
|
static __always_inline void vmcs_check16(unsigned long field)
|
||||||
|
|
Loading…
Reference in New Issue