]> Git Repo - qemu.git/commit - block.c
Add cache=unsafe parameter to -drive
authorAlexander Graf <[email protected]>
Wed, 26 May 2010 15:51:49 +0000 (17:51 +0200)
committerAurelien Jarno <[email protected]>
Wed, 26 May 2010 18:05:14 +0000 (20:05 +0200)
commit016f5cf6ff465411733878a17c8f8febb7668321
treecc50fdca4d1b3742bc655cefaeef5795fe730e62
parentd467b679f2993cb07fcc8112bfee6f6e8a40d093
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 <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
block.c
block.h
qemu-config.c
qemu-options.hx
vl.c
This page took 0.026341 seconds and 4 git commands to generate.