diff options
author | Alexander Graf <agraf@suse.de> | 2010-05-26 17:51:49 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-05-26 20:05:14 +0200 |
commit | 016f5cf6ff465411733878a17c8f8febb7668321 (patch) | |
tree | cc50fdca4d1b3742bc655cefaeef5795fe730e62 /qemu-config.c | |
parent | d467b679f2993cb07fcc8112bfee6f6e8a40d093 (diff) |
Add cache=unsafe parameter to -drive
Usually the guest can tell the host to flush data to disk. In some cases we
don't want to flush though, but try to keep everything in cache.
So let's add a new cache value to -drive that allows us to set the cache
policy to most aggressive, disabling flushes. We call this mode "unsafe",
as guest data is not guaranteed to survive host crashes anymore.
This patch also adds a noop function for aio, so we can do nothing in AIO
fashion.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'qemu-config.c')
-rw-r--r-- | qemu-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-config.c b/qemu-config.c index aa376d450a..5a4e61b0f6 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -54,7 +54,7 @@ QemuOptsList qemu_drive_opts = { },{ .name = "cache", .type = QEMU_OPT_STRING, - .help = "host cache usage (none, writeback, writethrough)", + .help = "host cache usage (none, writeback, writethrough, unsafe)", },{ .name = "aio", .type = QEMU_OPT_STRING, |