]> git.proxmox.com Git - mirror_qemu.git/commit
vfio/platform: Use vfio_[attach/detach]_device
authorEric Auger <eric.auger@redhat.com>
Mon, 9 Oct 2023 09:09:10 +0000 (11:09 +0200)
committerCédric Le Goater <clg@redhat.com>
Wed, 18 Oct 2023 08:10:49 +0000 (10:10 +0200)
commitda5ed43299bb5d99ffea819b8a3c3629005ea9fd
tree194b403ab31fb9d0ac3ba24747d1b9a621e2c755
parent5456b1867d10826e3857fda417b59a669fa5cce9
vfio/platform: Use vfio_[attach/detach]_device

Let the vfio-platform device use vfio_attach_device() and
vfio_detach_device(), hence hiding the details of the used
IOMMU backend.

Drop the trace event for vfio-platform as we have similar
one in vfio_attach_device.

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: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/platform.c
hw/vfio/trace-events