qemu/hw/vfio
Zhenzhong Duan 4517c33c31 vfio: Make VFIOContainerBase poiner parameter const in VFIOIOMMUOps callbacks
Some of the callbacks in VFIOIOMMUOps pass VFIOContainerBase poiner,
those callbacks only need read access to the sub object of VFIOContainerBase.
So make VFIOContainerBase, VFIOContainer and VFIOIOMMUFDContainer as const
in these callbacks.

Local functions called by those callbacks also need same changes to avoid
build error.

Suggested-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.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/ap: Make vfio cdev pre-openable by passing a file handle 2023-12-19 19:03:38 +01:00
calxeda-xgmac.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ccw.c vfio/ccw: Make vfio cdev pre-openable by passing a file handle 2023-12-19 19:03:38 +01:00
common.c vfio: Make VFIOContainerBase poiner parameter const in VFIOIOMMUOps callbacks 2023-12-19 19:03:38 +01:00
container-base.c vfio: Make VFIOContainerBase poiner parameter const in VFIOIOMMUOps callbacks 2023-12-19 19:03:38 +01:00
container.c vfio: Make VFIOContainerBase poiner parameter const in VFIOIOMMUOps callbacks 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/pci: Make vfio cdev pre-openable by passing a file handle 2023-12-19 19:03:38 +01:00
igd.c *: Add missing includes of qemu/error-report.h 2023-03-22 15:06:57 +00:00
iommufd.c vfio: Make VFIOContainerBase poiner parameter const in VFIOIOMMUOps callbacks 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: Make vfio cdev pre-openable by passing a file handle 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: Make vfio cdev pre-openable by passing a file handle 2023-12-19 19:03:38 +01:00
spapr.c vfio/spapr: Move hostwin_list into spapr container 2023-12-19 19:03:38 +01:00
trace-events vfio/iommufd: Enable pci hot reset through iommufd cdev interface 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