On 3/11/20 7:55 AM, Peter Krempa wrote:
Introduce a set of helpers to call blockdev-reopen in certain
scenarios
Libvirt will use the QMP command to turn certain members of the backing
chain read-write for bitmap manipulation and we'll also want to use it
to replace/install the backing chain of a qcow2 format node.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_block.c | 101 ++++++++++++++++++++++++++++++++++++++++++
src/qemu/qemu_block.h | 9 ++++
2 files changed, 110 insertions(+)
Reviewed-by: Eric Blake <eblake(a)redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization:
qemu.org |
libvirt.org