]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add unsafe cache mode support for disk driver
authorOskari Saarenmaa <os@ohmu.fi>
Thu, 22 Sep 2011 19:33:47 +0000 (22:33 +0300)
committerEric Blake <eblake@redhat.com>
Fri, 23 Sep 2011 14:29:57 +0000 (08:29 -0600)
commitf887334dcf0c0e4b883d6afed5c5b580552ecc01
tree15a8dc37ee458b51426c38b42b8ad29a3e4dd54b
parentcb61009236a96f16fa7eabc92f5d6ed5f6313163
Add unsafe cache mode support for disk driver

QEMU 0.13 introduced cache=unsafe for -drive, this patch exposes
it in the libvirt layer.

  * Introduced a new QEMU capability flag ($prefix_CACHE_UNSAFE),
    as even if $prefix_CACHE_V2 is set, we can't know if unsafe
    is supported.

  * Improved the reliability of qemu cache type detection.
13 files changed:
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_command.c
tests/qemuargv2xmltest.c
tests/qemuhelptest.c
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-unsafe.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-unsafe.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tools/virsh.pod