]> 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:43:42 +0000 (13:43 +0300)
commit1fc277a0e8ccb86a29c0b6ef656d90a62ef762d9
tree49a372bbd9f0ecc0df544a214b4dcfa8a03471b2
parent143d230d51a8f125804cb75a9bbc430e91027f61
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