]> git.proxmox.com Git - mirror_qemu.git/commit
migration: simplify notifiers
authorSteve Sistare <steven.sistare@oracle.com>
Wed, 7 Jun 2023 14:42:34 +0000 (07:42 -0700)
committerJuan Quintela <quintela@redhat.com>
Fri, 20 Oct 2023 06:51:41 +0000 (08:51 +0200)
commitd9cda21303a2b92cf3be48b75d4201896aa06857
treeec662a0385160804d820302cfe9b296b0c4940ae
parent2c36076a1153e321e32a28b735f5c0fe70d8d10f
migration: simplify notifiers

Pass the callback function to add_migration_state_change_notifier so
that migration can initialize the notifier on add and clear it on
delete, which simplifies the call sites.  Shorten the function names
so the extra arg can be added more legibly.  Hide the global notifier
list in a new function migration_call_notifiers, and make it externally
visible so future live update code can call it.

No functional change.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Tested-by: Michael Galaxy <mgalaxy@akamai.com>
Reviewed-by: Michael Galaxy <mgalaxy@akamai.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <1686148954-250144-1-git-send-email-steven.sistare@oracle.com>
hw/net/virtio-net.c
hw/vfio/migration.c
include/migration/misc.h
migration/migration.c
net/vhost-vdpa.c
ui/spice-core.c