From f64b9caa08674b46526095162c1f5fe7d2ef5edf Mon Sep 17 00:00:00 2001 From: Max Bruning Date: Tue, 14 Jun 2011 05:47:47 -0700 Subject: HVM-331 Implement XXXs in vmx_create_vcpu --- kvm_vmx.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'kvm_vmx.c') diff --git a/kvm_vmx.c b/kvm_vmx.c index 9423b1f..9a2e32d 100644 --- a/kvm_vmx.c +++ b/kvm_vmx.c @@ -4269,15 +4269,9 @@ vmx_vcpu_run(struct kvm_vcpu *vcpu) static void vmx_destroy_vcpu(struct kvm_vcpu *vcpu) { - /* XXX don't assume it's the first element */ - vcpu_vmx_t *vmx = (vcpu_vmx_t *)vcpu; + vcpu_vmx_t *vmx = to_vmx(vcpu); if (vmx->vmcs != NULL) { - /* - * 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; -- cgit v1.2.3