]> git.proxmox.com Git - qemu.git/commit
virtio-blk: disable write cache if not negotiated
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Aug 2012 14:07:20 +0000 (16:07 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 10 Aug 2012 08:25:12 +0000 (10:25 +0200)
commit9315cbfd8d7074eca44fbc5f93902e97b27d5240
tree593ae6bf75d47063a3a4604cd2ea25c33c207aae
parent13e3dce068773c971ff2f19d986378c55897c4a3
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>
hw/virtio-blk.c