mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/HVM: Fix teardown ordering in hvm_vcpu_destroy()
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>
This commit is contained in:
1 parent
e83ff50a55
commit
ffc103c223
1 file changed
+2
-2
@@ -1626,12 +1626,12 @@ void hvm_vcpu_destroy(struct vcpu *v)
|
||||
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)
|
||||
|
||||