]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainCleanupRun: Actually run cleanup callbacks in reverse order
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 5 May 2020 11:45:44 +0000 (13:45 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 11 May 2020 11:20:19 +0000 (13:20 +0200)
commit06fc99b6ceb846b07e1cae3d82916ef50ca5f60e
tree46be473bffd1be9445aaf0dcc3437d5e8a86060f
parent23bf93884c6346206e87c0f14d93f905e8c81267
qemuDomainCleanupRun: Actually run cleanup callbacks in reverse order

We have a framework to register cleanup callbacks that are run
when a domain is shut down. The idea is to run callbacks in
reverse order than they were registered. However, looking at the
code this is not the case. Fortunately, this framework is used to
register a single callback and a single callback only -
qemuMigrationDstPrepareCleanup() - therefore there was no problem
just yet.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c