]> git.ipfire.org Git - thirdparty/qemu.git/commit
vmstate: Mark VMStateInfo.get/put() coroutine_mixed_fn
authorKevin Wolf <kwolf@redhat.com>
Tue, 5 Sep 2023 14:50:01 +0000 (16:50 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 8 Sep 2023 15:03:09 +0000 (17:03 +0200)
commit8686a689e5bc205bdba0e647c269b86756cbc504
tree08f94b74dedb65a9c60b13316b857f8823b4e8c0
parent9ea473fb7bd01d350a860044b3d8e46f8747e865
vmstate: Mark VMStateInfo.get/put() coroutine_mixed_fn

Migration code can run both in coroutine context (the usual case) and
non-coroutine context (at least savevm/loadvm for snapshots). This also
affects the VMState callbacks, and devices must consider this. Change
the callback definition in VMStateInfo to be explicit about it.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20230905145002.46391-2-kwolf@redhat.com>
Acked-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/migration/vmstate.h