Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146510
b: refs/heads/master
c: 575ff2d
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity committed Jun 10, 2009
1 parent 55c0570 commit de2a4b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 919818abc2ca0721f1cd296fbc24601d9044f993
refs/heads/master: 575ff2dcb25608d53737d1126ee0e7e4d6f11752
5 changes: 4 additions & 1 deletion trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit de2a4b2

Please sign in to comment.