]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Use proper block job name when reconnecting to VM
authorPeter Krempa <pkrempa@redhat.com>
Tue, 11 Jun 2019 14:42:53 +0000 (16:42 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 12 Jun 2019 07:40:02 +0000 (09:40 +0200)
commit56c6893ff5321a3efb4acc8e268402273e23c751
treed7dbd9d51430d24490129390ab032d2c042942c9
parent4c4953fb37158025c8216e96a9e0cbd0b7e03e1e
qemu: Use proper block job name when reconnecting to VM

The hash table returned by qemuMonitorGetAllBlockJobInfo is organized by
the frontend name (which skipps the 'drive-' prefix). While our code
properly matches the jobs to the disk, qemu needs the full job name
including the 'drive-' prefix to be able to identify jobs.

Fix this by adding an argument to qemuMonitorGetAllBlockJobInfo which
does not modify the job name before filling the hash.

This fixes a regression where users would not be able to cancel/pivot
block jobs after restarting libvirtd while a blockjob is running.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
src/qemu/qemu_process.c