projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdf288b
)
KVM: VMX: require INVEPT GLOBAL for EPT
author
David Hildenbrand
<
[email protected]
>
Thu, 24 Aug 2017 18:51:30 +0000
(20:51 +0200)
committer
Paolo Bonzini
<
[email protected]
>
Thu, 12 Oct 2017 12:01:52 +0000
(14:01 +0200)
Without this, we won't be able to do any flushes, so let's just require
it. Should be absent in very strange configurations.
Suggested-by: Paolo Bonzini <
[email protected]
>
Signed-off-by: David Hildenbrand <
[email protected]
>
Signed-off-by: Radim Krčmář <
[email protected]
>
arch/x86/kvm/vmx.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/vmx.c
b/arch/x86/kvm/vmx.c
index 7d944d3feb8a68ab1f9749a5d429ddaa5a307a74..7fffdd4446cf477bb6af80062cc80d03382edbd0 100644
(file)
--- a/
arch/x86/kvm/vmx.c
+++ b/
arch/x86/kvm/vmx.c
@@
-1598,8
+1598,7
@@
static inline void vpid_sync_context(int vpid)
static inline void ept_sync_global(void)
{
- if (cpu_has_vmx_invept_global())
- __invept(VMX_EPT_EXTENT_GLOBAL, 0, 0);
+ __invept(VMX_EPT_EXTENT_GLOBAL, 0, 0);
}
static inline void ept_sync_context(u64 eptp)
@@
-6747,7
+6746,8
@@
static __init int hardware_setup(void)
if (!cpu_has_vmx_ept() ||
!cpu_has_vmx_ept_4levels() ||
- !cpu_has_vmx_ept_mt_wb()) {
+ !cpu_has_vmx_ept_mt_wb() ||
+ !cpu_has_vmx_invept_global()) {
enable_ept = 0;
enable_unrestricted_guest = 0;
enable_ept_ad_bits = 0;