qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] hw/pflash: implement update buffer for block writes
@ 2024-01-08 12:53 Philippe Mathieu-Daudé
  2024-01-08 12:53 ` [PATCH v2 1/2] hw/block/pflash_cfi01: Use the LD/ST API in pflash_data_read/write Philippe Mathieu-Daudé
  2024-01-08 12:53 ` [PATCH v2 2/2] hw/pflash: implement update buffer for block writes Philippe Mathieu-Daudé
  0 siblings, 2 replies; 9+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-01-08 12:53 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel
  Cc: qemu-block, Hanna Reitz, Kevin Wolf, Philippe Mathieu-Daudé

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/20240105135855.268064-1-kraxel@redhat.com/

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(-)

-- 
2.41.0



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-01-17  7:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-08 12:53 [PATCH v2 0/2] hw/pflash: implement update buffer for block writes Philippe Mathieu-Daudé
2024-01-08 12:53 ` [PATCH v2 1/2] hw/block/pflash_cfi01: Use the LD/ST API in pflash_data_read/write Philippe Mathieu-Daudé
2024-01-08 12:53 ` [PATCH v2 2/2] hw/pflash: implement update buffer for block writes Philippe Mathieu-Daudé
2024-01-08 13:05   ` Philippe Mathieu-Daudé
2024-01-12 16:54     ` Peter Maydell
2024-01-16 16:08       ` Philippe Mathieu-Daudé
2024-01-16 16:09         ` Peter Maydell
2024-01-17  7:52         ` Peter Xu
2024-01-09 21:40   ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).