diff options
author | Steve Sistare <steven.sistare@oracle.com> | 2025-01-15 11:00:34 -0800 |
---|---|---|
committer | Fabiano Rosas <farosas@suse.de> | 2025-01-29 11:43:04 -0300 |
commit | 2b7e9739fad8812d74e5e0ff4433ec25fb461281 (patch) | |
tree | 2159042499a672cd8e4d0a0cb44ebc10f6ff3f1f /rust/qemu-api-macros | |
parent | e7d79011a4b2e7bf8f7a0423164b65656d1619d7 (diff) | |
download | qemu-2b7e9739fad8812d74e5e0ff4433ec25fb461281.zip qemu-2b7e9739fad8812d74e5e0ff4433ec25fb461281.tar.gz qemu-2b7e9739fad8812d74e5e0ff4433ec25fb461281.tar.bz2 |
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>
Diffstat (limited to 'rust/qemu-api-macros')
0 files changed, 0 insertions, 0 deletions