]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: pass block pull backing file to monitor
authorEric Blake <eblake@redhat.com>
Sat, 18 Feb 2012 16:20:01 +0000 (09:20 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 29 Feb 2012 20:44:20 +0000 (13:44 -0700)
commit10ec36e2e7bac65dfee0ab04b992524f8a97c216
tree0631f50519d8d7d3fc4e6094a9a6a87fcdc414e1
parent68a1300556c4122767a9e77453c0e8e5d97c782f
qemu: pass block pull backing file to monitor

This actually wires up the new optional parameter to block_stream:
http://wiki.qemu.org/Features/LiveBlockMigration/ImageStreamingAPI

The error checking is still sparse, since libvirt must not use
qemu-img or header probing on a qcow2 file in use by qemu to
check if the backing file name is valid; so for now, libvirt is
relying on qemu to diagnose an incorrect backing name.  Fixing this
will require libvirt to track the entire backing file chain at the
time qemu is started and keeps it updated with snapshot and pull
operations.

* src/qemu/qemu_monitor_json.c (qemuMonitorJSONBlockJob): Add
parameter, and update callers.
* src/qemu/qemu_monitor_json.h (qemuMonitorJSONBlockJob): Update
signature.
* src/qemu/qemu_monitor.h (qemuMonitorBlockJob): Likewise.
* src/qemu/qemu_driver.c (qemuDomainBlockJobImpl): Update caller.
* src/qemu/qemu_monitor.c (qemuMonitorBlockJob): Likewise.
src/qemu/qemu_driver.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h