diff options
author | Bryan Cantrill <bryan@joyent.com> | 2011-08-01 21:07:12 -0700 |
---|---|---|
committer | Bryan Cantrill <bryan@joyent.com> | 2011-08-01 21:07:12 -0700 |
commit | 93ef161d682fe751969bc7177c39680e37631b17 (patch) | |
tree | a4ccf6fb769be5a9282f8219092e4c08db660fac /kvm_vmx.c | |
parent | 034dc85e563a1c15ef8eef125c11de9dd7918ae9 (diff) | |
download | illumos-kvm-93ef161d682fe751969bc7177c39680e37631b17.tar.gz |
HVM-541 eliminate XXXs around x86 feature checks
Diffstat (limited to 'kvm_vmx.c')
-rw-r--r-- | kvm_vmx.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -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()) |