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:
Suravee Suthikulpanit authored and Andrew Cooper committed 2017-01-10 17:25:09 +00:00
1 parent e83ff50a55
commit ffc103c223
1 file changed
+2 -2
+2 -2
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.