projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
919818a
)
KVM: VMX: Zero ept module parameter if ept is not present
author
Avi Kivity
<avi@redhat.com>
Mon, 23 Mar 2009 16:25:15 +0000
(18:25 +0200)
committer
Avi Kivity
<avi@redhat.com>
Wed, 10 Jun 2009 08:48:32 +0000
(11:48 +0300)
Allows reading back hardware capability.
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/vmx.c
b/arch/x86/kvm/vmx.c
index 9b97c8e3cfd1f7476a5b6a7b21ec6535d8ab9b66..2f65120cf283f5f12afa86070c2dc8434021662d 100644
(file)
--- a/
arch/x86/kvm/vmx.c
+++ b/
arch/x86/kvm/vmx.c
@@
-265,7
+265,7
@@
static inline int cpu_has_vmx_ept(void)
static inline int vm_need_ept(void)
{
- return
(cpu_has_vmx_ept() && enable_ept)
;
+ return
enable_ept
;
}
static inline int vm_need_virtualize_apic_accesses(struct kvm *kvm)
@@
-1205,6
+1205,9
@@
static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf)
if (!cpu_has_vmx_vpid())
enable_vpid = 0;
+ if (!cpu_has_vmx_ept())
+ enable_ept = 0;
+
min = 0;
#ifdef CONFIG_X86_64
min |= VM_EXIT_HOST_ADDR_SPACE_SIZE;