]> git.ipfire.org Git - thirdparty/qemu.git/commit
pflash: fix cpr
authorSteve Sistare <steven.sistare@oracle.com>
Fri, 7 Mar 2025 20:55:52 +0000 (12:55 -0800)
committerFabiano Rosas <farosas@suse.de>
Fri, 14 Mar 2025 12:29:19 +0000 (09:29 -0300)
commite56ba1878fefe7babff76ff399311ae5e399c5c5
tree2454901262a56b2de3d092a56fcf5a6a63436dd2
parent1632a2017f682a9dc6ce51756b9765af07977873
pflash: fix cpr

During normal migration, new QEMU creates and initializes memory regions,
then loads the preserved contents of the region from vmstate.

During CPR, memory regions are preserved in place, then the realize
method initializes the regions contents, losing the old contents.  To
fix, skip the re-init during CPR.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <1741380954-341079-3-git-send-email-steven.sistare@oracle.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
hw/block/block.c