qemu-e2k/hw/vfio
Avihai Horon 3f6ed59ec4 vfio/migration: Refactor vfio_save_state() return value
Currently, vfio_save_state() returns 1 regardless of whether there is
more data to send or not. This was done to prevent a fast changing VFIO
device from potentially blocking other devices from sending their data,
as qemu_savevm_state_iterate() serialized devices.

Now that qemu_savevm_state_iterate() no longer serializes devices, there
is no need for that.

Refactor vfio_save_state() to return 0 if more data is available and 1
if no more data is available.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240304105339.20713-3-avihaih@nvidia.com
Signed-off-by: Peter Xu <peterx@redhat.com>
2024-03-11 14:41:40 -04:00
..
amd-xgbe.c
ap.c vfio: Introduce a helper function to initialize VFIODevice 2023-12-19 19:03:38 +01:00
calxeda-xgmac.c
ccw.c vfio: Introduce a helper function to initialize VFIODevice 2023-12-19 19:03:38 +01:00
common.c vfio: use matching sizeof type 2024-01-29 08:26:25 +01:00
container-base.c vfio/container: Introduce a VFIOIOMMU QOM interface 2024-01-05 21:25:20 +01:00
container.c vfio/container: Rename vfio_init_container to vfio_set_iommu 2024-01-05 21:25:20 +01:00
display.c hw/vfio: Constify VMState 2023-12-30 07:38:06 +11:00
helpers.c vfio: Introduce a helper function to initialize VFIODevice 2023-12-19 19:03:38 +01:00
igd.c
iommufd.c vfio/iommufd: Remove the use of stat() to check file existence 2024-01-05 21:25:20 +01:00
Kconfig
meson.build vfio/spapr: Only compile sPAPR IOMMU support when needed 2024-01-05 21:25:20 +01:00
migration.c vfio/migration: Refactor vfio_save_state() return value 2024-03-11 14:41:40 -04: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/pci.c: Make some structure static 2024-03-09 18:56:36 +03:00
pci.h vfio/pci: Introduce a vfio pci hot reset interface 2023-12-19 19:03:38 +01:00
platform.c vfio: Introduce a helper function to initialize VFIODevice 2023-12-19 19:03:38 +01:00
spapr.c vfio/spapr: Introduce a sPAPR VFIOIOMMU QOM interface 2024-01-05 21:25:20 +01:00
trace-events migration: MigrationEvent for notifiers 2024-02-28 11:31:28 +08:00
trace.h