]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: cpr-exec save and load
authorSteve Sistare <steven.sistare@oracle.com>
Wed, 1 Oct 2025 15:33:57 +0000 (08:33 -0700)
committerPeter Xu <peterx@redhat.com>
Fri, 3 Oct 2025 13:48:02 +0000 (09:48 -0400)
commitefc65873131dac48d2f7620adfcd683834acc94b
treeb621c7c320bcda67611bfd0787a9267b567a2711
parentf57ff59f1e14f8162efda41725d1c013ed76b7d7
migration: cpr-exec save and load

To preserve CPR state across exec, create a QEMUFile based on a memfd, and
keep the memfd open across exec.  Save the value of the memfd in an
environment variable so post-exec QEMU can find it.

These new functions are called in a subsequent patch.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Link: https://lore.kernel.org/r/1759332851-370353-6-git-send-email-steven.sistare@oracle.com
[peterx: fix build for Windows]
Signed-off-by: Peter Xu <peterx@redhat.com>
include/migration/cpr.h
migration/cpr-exec.c [new file with mode: 0644]
migration/meson.build