qemu/hw/vfio
Zhenzhong Duan c328e7e8ad vfio/pci: Introduce a vfio pci hot reset interface
Legacy vfio pci and iommufd cdev have different process to hot reset
vfio device, expand current code to abstract out pci_hot_reset callback
for legacy vfio, this same interface will also be used by iommufd
cdev vfio device.

Rename vfio_pci_hot_reset to vfio_legacy_pci_hot_reset and move it
into container.c.

vfio_pci_[pre/post]_reset and vfio_pci_host_match are exported so
they could be called in legacy and iommufd pci_hot_reset callback.

Suggested-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2023-12-19 19:03:38 +01:00
..
amd-xgbe.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ap.c vfio/container: Move IBM EEH related functions into spapr_pci_vfio.c 2023-11-06 13:23:23 +01:00
calxeda-xgmac.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ccw.c vfio/container: Move IBM EEH related functions into spapr_pci_vfio.c 2023-11-06 13:23:23 +01:00
common.c vfio/iommufd: Implement the iommufd backend 2023-12-19 19:03:38 +01:00
container-base.c vfio/iommufd: Relax assert check for iommufd backend 2023-12-19 19:03:38 +01:00
container.c vfio/pci: Introduce a vfio pci hot reset interface 2023-12-19 19:03:38 +01:00
display.c hw/vfio: add ramfb migration support 2023-10-18 10:10:49 +02:00
helpers.c vfio/container: Move IBM EEH related functions into spapr_pci_vfio.c 2023-11-06 13:23:23 +01:00
igd.c *: Add missing includes of qemu/error-report.h 2023-03-22 15:06:57 +00:00
iommufd.c vfio/iommufd: Add support for iova_ranges and pgsizes 2023-12-19 19:03:38 +01:00
Kconfig hw/vfio: Move the IGD quirk code to a separate file 2020-02-06 11:55:42 -07:00
meson.build vfio/iommufd: Implement the iommufd backend 2023-12-19 19:03:38 +01: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 vfio/pci: Introduce a vfio pci hot reset interface 2023-12-19 19:03:38 +01:00
pci.h vfio/pci: Introduce a vfio pci hot reset interface 2023-12-19 19:03:38 +01:00
platform.c vfio/platform: Use vfio_[attach/detach]_device 2023-10-18 10:10:49 +02:00
spapr.c vfio/spapr: Move hostwin_list into spapr container 2023-12-19 19:03:38 +01:00
trace-events vfio/iommufd: Implement the iommufd backend 2023-12-19 19:03:38 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00