]> xenbits.xensource.com Git - libvirt.git/commit
qemu: hotplug: Prepare for multiple backing chain member hotplug
authorPeter Krempa <pkrempa@redhat.com>
Wed, 11 Jul 2018 16:26:12 +0000 (18:26 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 20 Jul 2018 12:23:09 +0000 (14:23 +0200)
commitd3f9dda2c9fd9fa7d2f7f1f1dd70ed7d83938101
tree9b6020074f51f9744cdeed3031b668f686e38975
parent13f763fcddc7394961d86c80a12aae21d51a111a
qemu: hotplug: Prepare for multiple backing chain member hotplug

Similarly to how we've intergrated data belonging to a single
virStorageSource for purposes of attaching it to a qemu instance we will
need to agregate data relevant for the whole disk. With blockdev there
will be some disk-wide backing chain members such as the copy-on-read
handler.

Introduce qemuHotplugDiskSourceData which agregates the backing chain
and other data relevant for the disk and functions which generate it
and apply and rollback it.

In addition to disk hotplug this will also be reused for media changing
where we need to exchange the full disk backend.

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