]> git.proxmox.com Git - qemu.git/commit - blockdev.c
blockdev: flip default cache mode from writethrough to writeback
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Aug 2012 14:07:21 +0000 (16:07 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 10 Aug 2012 08:25:12 +0000 (10:25 +0200)
commit1f212b9d3edd8679bafd3bcf0301795206438724
tree1a15edf9d7477d98862a3f68f3247ce60ba05e26
parent9315cbfd8d7074eca44fbc5f93902e97b27d5240
blockdev: flip default cache mode from writethrough to writeback

Now all major device models (IDE, SCSI, virtio) can choose between
writethrough and writeback at run-time, and virtio will even revert
to writethrough if the guest is not capable of sending flushes.  So
we can change the default to writeback at last.

Tested, for lack of a better idea, with a breakpoint on bdrv_open
and all cache choices one by one.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c