qemu-e2k/hw/vfio
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
..
amd-xgbe.c
ap.c vfio/ap: Remove pointless apdev variable 2023-10-18 10:10:49 +02:00
calxeda-xgmac.c
ccw.c vfio/ccw: Use vfio_[attach/detach]_device 2023-10-18 10:10:49 +02:00
common.c migration: simplify blockers 2023-10-20 08:51:41 +02:00
container.c vfio/common: Move legacy VFIO backend code into separate container.c 2023-10-18 10:10:49 +02:00
display.c hw/vfio: add ramfb migration support 2023-10-18 10:10:49 +02:00
helpers.c vfio/common: Move IOMMU agnostic helpers to a separate file 2023-10-18 10:10:49 +02:00
igd.c *: Add missing includes of qemu/error-report.h 2023-03-22 15:06:57 +00:00
Kconfig
meson.build vfio/common: Move legacy VFIO backend code into separate container.c 2023-10-18 10:10:49 +02:00
migration.c migration: simplify notifiers 2023-10-20 08:51:41 +02:00
pci-quirks.c spapr: Remove support for NVIDIA V100 GPU with NVLink2 2023-09-18 07:25:28 -03:00
pci.c hw/vfio: add ramfb migration support 2023-10-18 10:10:49 +02:00
pci.h hw/vfio: add ramfb migration support 2023-10-18 10:10:49 +02:00
platform.c vfio/platform: Use vfio_[attach/detach]_device 2023-10-18 10:10:49 +02:00
spapr.c
trace-events vfio/platform: Use vfio_[attach/detach]_device 2023-10-18 10:10:49 +02:00
trace.h