]> 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 10:44:00 +0000 (13:44 +0300)
commitfcc79f2e09550b0461792491965fe202ed2219ae
treef1445d73e49256c3737a94aa769212c602d3980e
parentdd25df302e8e3c6a095d70c9e23482683c56a14d
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