The order of destroy function calls in hvm_vcpu_destroy() should be
the reverse of init calls in hvm_vcpu_initialise().
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
[ Fix up tasklet_kill() position ]
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
free_compat_arg_xlat(v);
tasklet_kill(&v->arch.hvm_vcpu.assert_evtchn_irq_tasklet);
- hvm_vcpu_cacheattr_destroy(v);
+ hvm_funcs.vcpu_destroy(v);
if ( is_hvm_vcpu(v) )
vlapic_destroy(v);
- hvm_funcs.vcpu_destroy(v);
+ hvm_vcpu_cacheattr_destroy(v);
}
void hvm_vcpu_down(struct vcpu *v)