summary refs log tree commit diff stats
path: root/hw/vfio/common.c
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2023-10-09 11:09:11 +0200
committerCédric Le Goater <clg@redhat.com>2023-10-18 10:10:49 +0200
commitc95d128ee3cf3319c9b40b550eac8df3f86fa410 (patch)
tree6a33e69ab4acab2c7073d4339f0a7059f4661730 /hw/vfio/common.c
parentda5ed43299bb5d99ffea819b8a3c3629005ea9fd (diff)
downloadfocaccia-qemu-c95d128ee3cf3319c9b40b550eac8df3f86fa410.tar.gz
focaccia-qemu-c95d128ee3cf3319c9b40b550eac8df3f86fa410.zip
vfio/ap: Use vfio_[attach/detach]_device
Let the vfio-ap device use vfio_attach_device() and
vfio_detach_device(), hence hiding the details of the used
IOMMU backend.

We take the opportunity to use g_path_get_basename() which
is prefered, as suggested by
3e015d815b ("use g_path_get_basename instead of basename")

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio/common.c')
0 files changed, 0 insertions, 0 deletions