summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskari Saarenmaa <os@ohmu.fi>2011-09-22 22:33:47 +0300
committerEric Blake <eblake@redhat.com>2011-09-23 08:29:57 -0600
commitf887334dcf0c0e4b883d6afed5c5b580552ecc01 (patch)
tree15a8dc37ee458b51426c38b42b8ad29a3e4dd54b /tests/qemuhelptest.c
parentFix synchronous reading of stream data (diff)
downloadlibvirt-f887334dcf0c0e4b883d6afed5c5b580552ecc01.tar.gz
libvirt-f887334dcf0c0e4b883d6afed5c5b580552ecc01.tar.bz2
libvirt-f887334dcf0c0e4b883d6afed5c5b580552ecc01.zip
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.
Diffstat (limited to 'tests/qemuhelptest.c')
-rw-r--r--tests/qemuhelptest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/qemuhelptest.c b/tests/qemuhelptest.c
index 933d55630..0ff823658 100644
--- a/tests/qemuhelptest.c
+++ b/tests/qemuhelptest.c
@@ -165,6 +165,7 @@ mymain(void)
QEMU_CAPS_MIGRATE_QEMU_TCP,
QEMU_CAPS_MIGRATE_QEMU_EXEC,
QEMU_CAPS_DRIVE_CACHE_V2,
+ QEMU_CAPS_DRIVE_CACHE_UNSAFE,
QEMU_CAPS_KVM,
QEMU_CAPS_DRIVE_FORMAT,
QEMU_CAPS_DRIVE_SERIAL,
@@ -408,6 +409,7 @@ mymain(void)
QEMU_CAPS_MIGRATE_QEMU_TCP,
QEMU_CAPS_MIGRATE_QEMU_EXEC,
QEMU_CAPS_DRIVE_CACHE_V2,
+ QEMU_CAPS_DRIVE_CACHE_UNSAFE,
QEMU_CAPS_KVM,
QEMU_CAPS_DRIVE_FORMAT,
QEMU_CAPS_DRIVE_SERIAL,
@@ -460,6 +462,7 @@ mymain(void)
QEMU_CAPS_MIGRATE_QEMU_TCP,
QEMU_CAPS_MIGRATE_QEMU_EXEC,
QEMU_CAPS_DRIVE_CACHE_V2,
+ QEMU_CAPS_DRIVE_CACHE_UNSAFE,
QEMU_CAPS_KVM,
QEMU_CAPS_DRIVE_FORMAT,
QEMU_CAPS_DRIVE_SERIAL,