]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Update asyncOwnerAPI when entering async job phase
authorJiri Denemark <jdenemar@redhat.com>
Fri, 19 Mar 2021 21:42:25 +0000 (22:42 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 22 Mar 2021 11:44:18 +0000 (12:44 +0100)
commitdf92ccb494b17dd400a91250c59613e1a88ba2c6
treef1b7469149e97ecb649209a3a5ae085217fd0948
parentaf41380672a1c1c7ce5531f761bf8834452ff58e
qemu: Update asyncOwnerAPI when entering async job phase

In case an async job spans multiple APIs (e.g., incoming migration) the
API that started the job is recorded as the asyncOwnerAPI even though it
is no longer running and the owner thread is updated properly to the one
currently handling the job. Let's also update asyncOwnerAPI to make it
more obvious which is the current (or the most recent) API involved in
the job.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_domainjob.c