vfio/container: Modify vfio_get_iommu_type() to use a container fd
commit55974f35eac3d8166a8dee498b1efee2ef9663c5
authorCédric Le Goater <clg@redhat.com>
Mon, 17 Jun 2024 06:33:59 +0000 (17 08:33 +0200)
committerCédric Le Goater <clg@redhat.com>
Mon, 24 Jun 2024 21:15:31 +0000 (24 23:15 +0200)
treeba9b3e91ac7ddefbdc03c49a6c847c649b066c0e
parent09181a8e9729c77c69f8d3988a1dbed0b91402d4
vfio/container: Modify vfio_get_iommu_type() to use a container fd

The 'container' pointer has no other use than its 'fd' attribute.
Simplify the prototype to ease future changes.

Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/container.c