Home
last modified time | relevance | path

Searched hist:ca716364f045da710ddef7fc6420bd6760e45b56 (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/
H A Dblock.cdiff ca716364f045da710ddef7fc6420bd6760e45b56 Thu Nov 10 11:13:59 CST 2011 Kevin Wolf <kwolf@redhat.com> block: Make cache=unsafe flush to the OS

cache=unsafe completely ignored bdrv_flush, because flushing the host disk
costs a lot of performance. However, this means that qcow2 images (and
potentially any other format) can lose data even after the guest has issued a
flush if the qemu process crashes/is killed. In case of a host crash, data loss
is certainly expected with cache=unsafe, but if just the qemu process dies this
is a bit too unsafe.

Now that we have two separate flush functions, we can choose to flush
everythign to the OS, but don't enforce that it's physically written to the
disk.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>