提交 fdf288bf 编写于 作者: D David Hildenbrand 提交者: Paolo Bonzini

KVM: VMX: call ept_sync_global() with enable_ept only

ept_* function should only be called with enable_ept being set.
Reviewed-by: NRadim Krčmář <rkrcmar@redhat.com>
Signed-off-by: NDavid Hildenbrand <david@redhat.com>
Signed-off-by: NRadim Krčmář <rkrcmar@redhat.com>
上级 0e1252dc
......@@ -3542,7 +3542,8 @@ static int hardware_enable(void)
wrmsrl(MSR_IA32_FEATURE_CONTROL, old | test_bits);
}
kvm_cpu_vmxon(phys_addr);
ept_sync_global();
if (enable_ept)
ept_sync_global();
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册