summaryrefslogtreecommitdiff
path: root/kvm_vmx.c
diff options
context:
space:
mode:
authorMax Bruning <max@joyent.com>2011-06-14 05:42:08 -0700
committerMax Bruning <max@joyent.com>2011-06-14 05:42:08 -0700
commit01d2951db24a5e797b59f241e98efc8aa6397e68 (patch)
tree7984cf6b9d6ad91a225d984de1d335b355b67ddc /kvm_vmx.c
parentf2ea4b24b0888a77328071b34cffabf7898848cf (diff)
downloadillumos-kvm-01d2951db24a5e797b59f241e98efc8aa6397e68.tar.gz
HVM-331 Implement XXXs in vmx_create_vcpu
Diffstat (limited to 'kvm_vmx.c')
-rw-r--r--kvm_vmx.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/kvm_vmx.c b/kvm_vmx.c
index 9e09aed..9423b1f 100644
--- a/kvm_vmx.c
+++ b/kvm_vmx.c
@@ -4349,16 +4349,9 @@ vmx_create_vcpu(struct kvm *kvm, unsigned int id)
free_vmcs:
kmem_free(vmx->vmcs, PAGESIZE);
vmx->vmcs = 0;
-#ifdef XXX
-free_msrs:
- kfree(vmx->guest_msrs);
-uninit_vcpu:
+ kmem_free(vmx->guest_msrs, PAGESIZE);
kvm_vcpu_uninit(&vmx->vcpu);
-free_vcpu:
kmem_cache_free(kvm_vcpu_cache, vmx);
-#else
- XXX_KVM_PROBE;
-#endif
return (NULL);
}