]> www.infradead.org Git - users/dwmw2/qemu.git/commit
physmem: preserve ram blocks for cpr
authorSteve Sistare <steven.sistare@oracle.com>
Wed, 15 Jan 2025 19:00:34 +0000 (11:00 -0800)
committerFabiano Rosas <farosas@suse.de>
Wed, 29 Jan 2025 14:43:04 +0000 (11:43 -0300)
commit2b7e9739fad8812d74e5e0ff4433ec25fb461281
tree2159042499a672cd8e4d0a0cb44ebc10f6ff3f1f
parente7d79011a4b2e7bf8f7a0423164b65656d1619d7
physmem: preserve ram blocks for cpr

Save the memfd for ramblocks in CPR state, along with a name that
uniquely identifies it.  The block's idstr is not yet set, so it
cannot be used for this purpose.  Find the saved memfd in new QEMU when
creating a block.  If size of a resizable block is larger in new QEMU,
extend it via the file_ram_alloc truncate parameter, and the extra space
will be usable after a guest reset.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/1736967650-129648-9-git-send-email-steven.sistare@oracle.com
Signed-off-by: Fabiano Rosas <farosas@suse.de>
system/physmem.c