qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] hw/pflash: implement update buffer for block writes
@ 2024-01-05 13:58 Gerd Hoffmann
  2024-01-05 13:58 ` [PATCH 1/2] hw/pflash: refactor pflash_data_write() Gerd Hoffmann
  2024-01-05 13:58 ` [PATCH 2/2] hw/pflash: implement update buffer for block writes Gerd Hoffmann
  0 siblings, 2 replies; 4+ messages in thread
From: Gerd Hoffmann @ 2024-01-05 13:58 UTC (permalink / raw)
  To: qemu-devel
  Cc: Hanna Reitz, Kevin Wolf, Philippe Mathieu-Daudé, qemu-block,
	Gerd Hoffmann

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.

Gerd Hoffmann (2):
  hw/pflash: refactor pflash_data_write()
  hw/pflash: implement update buffer for block writes

 hw/block/pflash_cfi01.c | 132 ++++++++++++++++++++++++++++------------
 1 file changed, 93 insertions(+), 39 deletions(-)

-- 
2.43.0



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

end of thread, other threads:[~2024-01-05 14:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-05 13:58 [PATCH 0/2] hw/pflash: implement update buffer for block writes Gerd Hoffmann
2024-01-05 13:58 ` [PATCH 1/2] hw/pflash: refactor pflash_data_write() Gerd Hoffmann
2024-01-05 14:08   ` Philippe Mathieu-Daudé
2024-01-05 13:58 ` [PATCH 2/2] hw/pflash: implement update buffer for block writes Gerd Hoffmann

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