]> xenbits.xensource.com Git - libvirt.git/commit
qemu: caps: Add capability for dynamic 'auto-read-only' support for files
authorPeter Krempa <pkrempa@redhat.com>
Mon, 8 Apr 2019 15:10:37 +0000 (17:10 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 22 Nov 2019 11:51:27 +0000 (12:51 +0100)
commit3460fef5a022df66f8547602542b24b5ca95bc9c
treef6b1c6c2440466edfb2a5f7a17b58f0d7ae0e4a4
parent73445e49e09d162b9588b06b00a1287f67d0aef1
qemu: caps: Add capability for dynamic 'auto-read-only' support for files

Initial implementation of 'auto-read-only' didn't reopen the backing
files when needed. For '-blockdev' to work we need to be able to tel
qemu to open a file read-only and change it during blockjobs as we label
backing chains with a sVirt label which does not allow writing. The
dynamic auto-read-only supports this as it reopens files when writing
is demanded.

Add a capability to detect that the posix file based backends support
the dynamic part.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml
tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml
tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml
tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml
tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml