Skip to content

Serious bugs in the handling of writeback caching

Paolo Bonzini qemu-devel 1 version Applied

Status from this message: Thanks, applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2blockdev: do not default cache.no-flush to trueblockdev.c+1 -11 reply
2/2virtio-blk: do not relay a previous driver's WCE configuration to the currenthw/block/virtio-blk.c include/hw/virtio/virtio-blk.h+8 -24 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] Serious bugs in the handling of writeback caching

The first bug is simply that in 1.6.0 the default was changed by mistake to cache=unsafe. This affects all block drivers. It is fixed in the first patch.

The second is that Linux guests that support the CONFIG_WCE option were mistaken into thinking that caching was writethrough, and thus did not send any flush. The bug is in QEMU, and is fixed by the second patch.

Paolo Bonzini (2):
blockdev: do not default cache.no-flush to true
virtio-blk: do not relay a previous driver's WCE configuration to the
current

 blockdev.c                     | 2 +-
 hw/block/virtio-blk.c          | 8 ++++++--
 include/hw/virtio/virtio-blk.h | 1 +
 3 files changed, 8 insertions(+), 3 deletions(-)
Signature · 1 line
1.8.3.1