diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/vmx.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 1caa1fc6d5ec..7d7b0d6e3f58 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -1208,15 +1208,6 @@ static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf) | |||
1208 | vmx_capability.ept, vmx_capability.vpid); | 1208 | vmx_capability.ept, vmx_capability.vpid); |
1209 | } | 1209 | } |
1210 | 1210 | ||
1211 | if (!cpu_has_vmx_vpid()) | ||
1212 | enable_vpid = 0; | ||
1213 | |||
1214 | if (!cpu_has_vmx_ept()) | ||
1215 | enable_ept = 0; | ||
1216 | |||
1217 | if (!cpu_has_vmx_flexpriority()) | ||
1218 | flexpriority_enabled = 0; | ||
1219 | |||
1220 | min = 0; | 1211 | min = 0; |
1221 | #ifdef CONFIG_X86_64 | 1212 | #ifdef CONFIG_X86_64 |
1222 | min |= VM_EXIT_HOST_ADDR_SPACE_SIZE; | 1213 | min |= VM_EXIT_HOST_ADDR_SPACE_SIZE; |
@@ -1320,6 +1311,15 @@ static __init int hardware_setup(void) | |||
1320 | if (boot_cpu_has(X86_FEATURE_NX)) | 1311 | if (boot_cpu_has(X86_FEATURE_NX)) |
1321 | kvm_enable_efer_bits(EFER_NX); | 1312 | kvm_enable_efer_bits(EFER_NX); |
1322 | 1313 | ||
1314 | if (!cpu_has_vmx_vpid()) | ||
1315 | enable_vpid = 0; | ||
1316 | |||
1317 | if (!cpu_has_vmx_ept()) | ||
1318 | enable_ept = 0; | ||
1319 | |||
1320 | if (!cpu_has_vmx_flexpriority()) | ||
1321 | flexpriority_enabled = 0; | ||
1322 | |||
1323 | return alloc_kvm_area(); | 1323 | return alloc_kvm_area(); |
1324 | } | 1324 | } |
1325 | 1325 | ||