aboutsummaryrefslogtreecommitdiff
path: root/blockdev.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-08-09 16:07:20 +0200
committerKevin Wolf <kwolf@redhat.com>2012-08-10 10:25:12 +0200
commit9315cbfd8d7074eca44fbc5f93902e97b27d5240 (patch)
tree593ae6bf75d47063a3a4604cd2ea25c33c207aae /blockdev.c
parent13e3dce068773c971ff2f19d986378c55897c4a3 (diff)
virtio-blk: disable write cache if not negotiated
If the guest does not support flushes, we should run in writethrough mode. The setting is temporary until the next reset, so that for example the BIOS will run in writethrough mode while Linux will run with a writeback cache. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions