]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: blockjob: Don't emit traditional disk events for jobs without disk
authorPeter Krempa <pkrempa@redhat.com>
Tue, 23 Apr 2019 08:47:01 +0000 (10:47 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 15 Jul 2019 08:26:23 +0000 (10:26 +0200)
commit0db5912617100068203a545695775f83f0ff382c
treeef3b993c95a7700926f8333df7c923c696f720a8
parent3149e00ab191324e503568d7487faad6efbc480f
qemu: blockjob: Don't emit traditional disk events for jobs without disk

With -blockdev it will be possible that a block job loses the disk that
was used to start it to a guest-initiated hot-unplug. Don't emit the
block job events in that case as we can't report the top level source or
disk target for an unplugged (and potentially replugged with different
source) disk.

Eventually when we add machinery for tracking jobs globally for a VM the
event will be reinstated via the domain job event.

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