]> xenbits.xensource.com Git - qemu-xen.git/commit
vfio/ap: Use vfio_[attach/detach]_device
authorEric Auger <eric.auger@redhat.com>
Mon, 9 Oct 2023 09:09:11 +0000 (11:09 +0200)
committerCédric Le Goater <clg@redhat.com>
Wed, 18 Oct 2023 08:10:49 +0000 (10:10 +0200)
commitc95d128ee3cf3319c9b40b550eac8df3f86fa410
tree6a33e69ab4acab2c7073d4339f0a7059f4661730
parentda5ed43299bb5d99ffea819b8a3c3629005ea9fd
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>
hw/vfio/ap.c