Skip to content

hw/pflash: implement update buffer for block writes

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 6 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/block/pflash_cfi01: Use the LD/ST API in pflash_data_read/writehw/block/pflash_cfi01.c+8 -550 replies
2/2hw/pflash: implement update buffer for block writeshw/block/pflash_cfi01.c+80 -266 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] hw/pflash: implement update buffer for block writes

Respin of Gerd's series [*] using the LD/ST API.

v1 [*] cover:

When running qemu with edk2 efi firmware on aarch64 the efi variable store in pflash can get corrupted. qemu not doing proper block writes -- flush all or nothing to storage -- is a hot candidate for being the root cause.

This little series tries to fix that with an update buffer where block writes are staged, so we can commit or discard the changes when the block write is completed or canceled.

[*] https://lore.kernel.org/qemu-devel/[email protected]/

Gerd Hoffmann (1):
hw/pflash: implement update buffer for block writes

Philippe Mathieu-Daudé (1):
hw/block/pflash_cfi01: Use the LD/ST API in pflash_data_read/write

 hw/block/pflash_cfi01.c | 165 +++++++++++++++++++++-------------------
 1 file changed, 86 insertions(+), 79 deletions(-)
Signature · 1 line
2.41.0