On Tue, May 10, 2022 at 17:21:09 +0200, Jiri Denemark wrote: > We will want to update migration phase without affecting job ownership. > Either in the thread that already owns the job or from an event handler > which only changes the phase (of a job no-one owns) without assuming it. > > Let's move the ownership change to a new qemuDomainObjStartJobPhase > helper and let qemuDomainObjSetJobPhase set the phase without touching > ownership. > > Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx> > --- > src/qemu/qemu_domainjob.c | 44 +++++++++++++++++++++++++++++++++++---- > src/qemu/qemu_domainjob.h | 3 +++ > src/qemu/qemu_migration.c | 2 +- > 3 files changed, 44 insertions(+), 5 deletions(-) Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>