aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2024-06-05 16:30:29 +0800
committerCédric Le Goater <clg@redhat.com>2024-06-24 23:15:30 +0200
commit0533739ecefbd3b820d32b576ad10dc6b0d56c29 (patch)
treec6c3903e32e8a53b94dac1893511c0f0999f7124 /hw
parent38998c79a1831e23ffed4b8b6f76222c1fedb9d5 (diff)
downloadqemu-0533739ecefbd3b820d32b576ad10dc6b0d56c29.zip
qemu-0533739ecefbd3b820d32b576ad10dc6b0d56c29.tar.gz
qemu-0533739ecefbd3b820d32b576ad10dc6b0d56c29.tar.bz2
vfio/container: Introduce TYPE_HOST_IOMMU_DEVICE_LEGACY_VFIO device
TYPE_HOST_IOMMU_DEVICE_LEGACY_VFIO represents a host IOMMU device under VFIO legacy container backend. It will have its own realize implementation. Suggested-by: Eric Auger <eric.auger@redhat.com> Suggested-by: Cédric Le Goater <clg@redhat.com> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/vfio/container.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/vfio/container.c b/hw/vfio/container.c
index 096cc97..c4fca2d 100644
--- a/hw/vfio/container.c
+++ b/hw/vfio/container.c
@@ -1141,7 +1141,10 @@ static const TypeInfo types[] = {
.name = TYPE_VFIO_IOMMU_LEGACY,
.parent = TYPE_VFIO_IOMMU,
.class_init = vfio_iommu_legacy_class_init,
- },
+ }, {
+ .name = TYPE_HOST_IOMMU_DEVICE_LEGACY_VFIO,
+ .parent = TYPE_HOST_IOMMU_DEVICE,
+ }
};
DEFINE_TYPES(types)