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:
a575813
)
KVM: VMX: Don't enable EPT A/D feature if EPT feature is disabled
author
Wanpeng Li
<
[email protected]
>
Thu, 11 May 2017 09:58:56 +0000
(
02:58
-0700)
committer
Radim Krčmář
<
[email protected]
>
Mon, 15 May 2017 14:08:57 +0000
(16:08 +0200)
We can observe eptad kvm_intel module parameter is still Y
even if ept is disabled which is weird. This patch will
not enable EPT A/D feature if EPT feature is disabled.
Cc: Paolo Bonzini <
[email protected]
>
Cc: Radim Krčmář <
[email protected]
>
Signed-off-by: Wanpeng Li <
[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 7698e8f321bf492ad498ac4650aa0f3ac73e9ad5..72f78396bc0960968161b66ccee00c42fa203fb7 100644
(file)
--- a/
arch/x86/kvm/vmx.c
+++ b/
arch/x86/kvm/vmx.c
@@
-6504,7
+6504,7
@@
static __init int hardware_setup(void)
enable_ept_ad_bits = 0;
}
- if (!cpu_has_vmx_ept_ad_bits())
+ if (!cpu_has_vmx_ept_ad_bits()
|| !enable_ept
)
enable_ept_ad_bits = 0;
if (!cpu_has_vmx_unrestricted_guest())