]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/pflash: implement update buffer for block writes
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 8 Jan 2024 16:08:59 +0000 (17:08 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 20 Jan 2024 14:41:47 +0000 (17:41 +0300)
commit16f6a650a8174f1582c14f00c746483fc9a99f3a
tree8e0af87a360a217a5e0911d9c5e9bcee57b2b127
parentd56cc9b5e527fcc696616b7bedef24ae924c918c
hw/pflash: implement update buffer for block writes

Add an update buffer where all block updates are staged.
Flush or discard updates properly, so we should never see
half-completed block writes in pflash storage.

Drop a bunch of FIXME comments ;)

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240108160900.104835-4-kraxel@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit 284a7ee2e290e0c9b8cd3ea6164d92386933054f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: drop const in hw/block/pflash_cfi01.c for before
 v8.2.0-220-g7d5dc0a367 "hw/block: Constify VMState")
hw/block/pflash_cfi01.c
hw/block/pflash_cfi02.c
hw/block/trace-events