summaryrefslogtreecommitdiff
path: root/hw/pl061.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2011-11-10 18:13:59 +0100
committerKevin Wolf <kwolf@redhat.com>2011-11-11 14:02:59 +0100
commitca716364f045da710ddef7fc6420bd6760e45b56 (patch)
treee29039d09181ff4a234373d2f65342c32b5f5e12 /hw/pl061.c
parenteb489bb1eceea0d710cd5f5122d37213300ceef6 (diff)
downloadqemu-ca716364f045da710ddef7fc6420bd6760e45b56.tar.gz
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>
Diffstat (limited to 'hw/pl061.c')
0 files changed, 0 insertions, 0 deletions