KVM: VMX: Don't enable EPT A/D feature if EPT feature is disabled
authorWanpeng Li <[email protected]>
Thu, 11 May 2017 09:58:56 +0000 (02:58 -0700)
committerRadim Krčmář <[email protected]>
Mon, 15 May 2017 14:08:57 +0000 (16:08 +0200)
commitfce6ac4c0508b985d497e3d9c8eff28ec8a43182
tree268b52fb044caf3ae535aac3f6ce780ca17a1aa4
parenta575813bfe4bc15aba511a5e91e61d242bff8b9d
KVM: VMX: Don't enable EPT A/D feature if EPT feature is disabled

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