]> xenbits.xensource.com Git - xen.git/commit
x86/HVM: re-order error path of hvm_domain_initialise()
authorJan Beulich <jbeulich@suse.com>
Fri, 5 Mar 2021 14:28:57 +0000 (15:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 5 Mar 2021 14:28:57 +0000 (15:28 +0100)
commit3d09a43f75a7ad0d24b460d9ba6130da637ffeed
tree7e1fd11008100e0bbb0eb627e84bffe589efa3e9
parent17810630a023631c7baa7b45ba2cde006304d694
x86/HVM: re-order error path of hvm_domain_initialise()

hvm_destroy_all_ioreq_servers(), called from
hvm_domain_relinquish_resources(), invokes relocate_portio_handler(),
which uses d->arch.hvm.io_handler. Defer freeing of this array
accordingly on the error path of hvm_domain_initialise().

Similarly rtc_deinit() requires d->arch.hvm.pl_time to still be around,
or else an armed timer structure would get freed, and that timer never
get killed.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: fbb3bf002b42803ef289ea2a649ebd5f25d22236
master date: 2021-01-29 11:36:54 +0100
xen/arch/x86/hvm/hvm.c