aboutsummaryrefslogtreecommitdiff
path: root/accel
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2023-11-21 16:44:17 +0800
committerCédric Le Goater <clg@redhat.com>2023-12-19 19:03:38 +0100
commit4517c33c31d392f08fa96a9db911da1e3507be94 (patch)
tree1880aca887eea43c2fac4d3840e43a5f4c383273 /accel
parent909a6254edaa8d0b0e3f1c0a623862e73d1842e9 (diff)
downloadqemu-4517c33c31d392f08fa96a9db911da1e3507be94.zip
qemu-4517c33c31d392f08fa96a9db911da1e3507be94.tar.gz
qemu-4517c33c31d392f08fa96a9db911da1e3507be94.tar.bz2
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>
Diffstat (limited to 'accel')
0 files changed, 0 insertions, 0 deletions