summaryrefslogtreecommitdiff
path: root/kvm_vmx.c
diff options
context:
space:
mode:
authorBryan Cantrill <bryan@joyent.com>2011-08-01 21:07:12 -0700
committerBryan Cantrill <bryan@joyent.com>2011-08-01 21:07:12 -0700
commit93ef161d682fe751969bc7177c39680e37631b17 (patch)
treea4ccf6fb769be5a9282f8219092e4c08db660fac /kvm_vmx.c
parent034dc85e563a1c15ef8eef125c11de9dd7918ae9 (diff)
downloadillumos-kvm-93ef161d682fe751969bc7177c39680e37631b17.tar.gz
HVM-541 eliminate XXXs around x86 feature checks
Diffstat (limited to 'kvm_vmx.c')
-rw-r--r--kvm_vmx.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/kvm_vmx.c b/kvm_vmx.c
index e598ced..a307de6 100644
--- a/kvm_vmx.c
+++ b/kvm_vmx.c
@@ -513,11 +513,6 @@ vcpu_clear(struct vcpu_vmx *vmx)
if (vmx->vcpu.cpu == -1)
return;
- /*
- * XXX: commented out below?
- *
- * smp_call_function_single(vmx->vcpu.cpu, __vcpu_clear, vmx, 1);
- */
kvm_xcall(vmx->vcpu.cpu, __vcpu_clear, vmx);
}
@@ -1549,11 +1544,8 @@ vmx_hardware_setup(void)
{
if (setup_vmcs_config(&vmcs_config) != DDI_SUCCESS)
return (EIO);
-#ifdef XXX
- if (boot_cpu_has(X86_FEATURE_NX))
-#else
- XXX_KVM_PROBE;
-#endif
+
+ if (is_x86_feature(x86_featureset, X86FSET_NX))
kvm_enable_efer_bits(EFER_NX);
if (!cpu_has_vmx_vpid())