]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/qxl: fix cpr
authorSteve Sistare <steven.sistare@oracle.com>
Fri, 7 Mar 2025 20:55:54 +0000 (12:55 -0800)
committerFabiano Rosas <farosas@suse.de>
Fri, 14 Mar 2025 12:29:20 +0000 (09:29 -0300)
commit8ffe0623a1f40803feb4280fce13549baa4b0b47
tree1ed0dbb71394ff1571883fd81c8eb0ffcfc02446
parentb42f28111e081ab1fd370e92ee78a461027590f0
hw/qxl: 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 writes to the qxl memory regions during CPR load.

Reported-by: andrey.drobyshev@virtuozzo.com
Tested-by: andrey.drobyshev@virtuozzo.com
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <1741380954-341079-5-git-send-email-steven.sistare@oracle.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
hw/display/qxl.c