]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/loader: fix roms during cpr
authorSteve Sistare <steven.sistare@oracle.com>
Fri, 7 Mar 2025 20:55:53 +0000 (12:55 -0800)
committerFabiano Rosas <farosas@suse.de>
Fri, 14 Mar 2025 12:29:19 +0000 (09:29 -0300)
commitb42f28111e081ab1fd370e92ee78a461027590f0
tree40744c779a6630a9ea94129e40d6c4568b1524df
parente56ba1878fefe7babff76ff399311ae5e399c5c5
hw/loader: fix roms during 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-4-git-send-email-steven.sistare@oracle.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
hw/core/loader.c