qemu-e2k/include/migration
Steve Sistare d9cda21303 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>
2023-10-20 08:51:41 +02:00
..
blocker.h migration: simplify blockers 2023-10-20 08:51:41 +02:00
colo.h
cpu.h
failover.h
global_state.h
misc.h migration: simplify notifiers 2023-10-20 08:51:41 +02:00
qemu-file-types.h
register.h migration: hold the BQL during setup 2023-10-17 09:25:13 +02:00
snapshot.h
vmstate.h migration/vmstate: Introduce vmstate_save_state_with_err 2023-10-04 10:54:40 +02:00