summaryrefslogtreecommitdiff
path: root/kvm_x86.c
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-04-29 14:59:39 -0700
committerRobert Mustacchi <rm@joyent.com>2011-04-29 14:59:39 -0700
commit4d205e46fe3543e97d56861fccb93fd9d4be7344 (patch)
treef14f0a7b70346a0fbd4c7078dd460a6197541a0b /kvm_x86.c
parent7570aad77b02425be0c5d76181d147d09705fe35 (diff)
downloadillumos-kvm-4d205e46fe3543e97d56861fccb93fd9d4be7344.tar.gz
HVM-137 Need to be able to unload kvm driver and load a new one and use KVM functionality
Diffstat (limited to 'kvm_x86.c')
-rw-r--r--kvm_x86.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/kvm_x86.c b/kvm_x86.c
index f975e45..aae4904 100644
--- a/kvm_x86.c
+++ b/kvm_x86.c
@@ -1922,7 +1922,12 @@ vmx_destroy_vcpu(struct kvm_vcpu *vcpu)
vcpu_vmx_t *vmx = (vcpu_vmx_t *)vcpu;
if (vmx->vmcs != NULL) {
- vcpu_clear(vmx);
+ /*
+ * XXX This should probably be just vcpu_clear. However, we need
+ * to get the per cpu lists working properly before we can do
+ * that.
+ */
+ __vcpu_clear(vmx);
kmem_free(vmx->vmcs, PAGESIZE);
vmx->vmcs = NULL;
}