vfio/container: Introduce vfio_get_iommu_class_name()
commit17401879c416c48c72e5e4d805244b893d44637c
authorCédric Le Goater <clg@redhat.com>
Mon, 17 Jun 2024 06:34:00 +0000 (17 08:34 +0200)
committerCédric Le Goater <clg@redhat.com>
Mon, 24 Jun 2024 21:15:31 +0000 (24 23:15 +0200)
treef85f6f27d821dea5e009d7b73015265f10093948
parent55974f35eac3d8166a8dee498b1efee2ef9663c5
vfio/container: Introduce vfio_get_iommu_class_name()

Rework vfio_get_iommu_class() to return a literal class name instead
of a class object. We will need this name to instantiate the object
later on. Since the default case asserts, remove the error report as
QEMU will simply abort before.

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