]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: lower handler priority
authorSteve Sistare <steven.sistare@oracle.com>
Tue, 10 Jun 2025 15:39:15 +0000 (08:39 -0700)
committerCédric Le Goater <clg@redhat.com>
Wed, 11 Jun 2025 12:01:58 +0000 (14:01 +0200)
commit081c09dc52bab0facfdd1d34fd466479af6ac531
tree5d7ece58e8798c3bce55db52a91070a3c25acc5d
parentf95fd60ac164a75c586ce29ebcc94bb6df85b52a
migration: lower handler priority

Define a vmstate priority that is lower than the default, so its handlers
run after all default priority handlers.  Since 0 is no longer the default
priority, translate an uninitialized priority of 0 to MIG_PRI_DEFAULT.

CPR for vfio will use this to install handlers for containers that run
after handlers for the devices that they contain.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/qemu-devel/1749569991-25171-3-git-send-email-steven.sistare@oracle.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
include/migration/vmstate.h
migration/savevm.c