Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146522
b: refs/heads/master
c: 93ba03c
h: refs/heads/master
v: v3
  • Loading branch information
Sheng Yang authored and Avi Kivity committed Jun 10, 2009
1 parent 7059799 commit 230d0ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 045471563df4b8723202a66ae54d58788b0f8e88
refs/heads/master: 93ba03c2e2aba23b042cc15eef83b7a66d3ac17a
18 changes: 9 additions & 9 deletions trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1208,15 +1208,6 @@ static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf)
vmx_capability.ept, vmx_capability.vpid);
}

if (!cpu_has_vmx_vpid())
enable_vpid = 0;

if (!cpu_has_vmx_ept())
enable_ept = 0;

if (!cpu_has_vmx_flexpriority())
flexpriority_enabled = 0;

min = 0;
#ifdef CONFIG_X86_64
min |= VM_EXIT_HOST_ADDR_SPACE_SIZE;
Expand Down Expand Up @@ -1320,6 +1311,15 @@ static __init int hardware_setup(void)
if (boot_cpu_has(X86_FEATURE_NX))
kvm_enable_efer_bits(EFER_NX);

if (!cpu_has_vmx_vpid())
enable_vpid = 0;

if (!cpu_has_vmx_ept())
enable_ept = 0;

if (!cpu_has_vmx_flexpriority())
flexpriority_enabled = 0;

return alloc_kvm_area();
}

Expand Down

0 comments on commit 230d0ec

Please sign in to comment.