diff options
author | Cédric Le Goater <clg@redhat.com> | 2023-12-19 07:58:21 +0100 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2024-01-05 21:25:20 +0100 |
commit | 61d893f2cdb34a2b0255f9b5fbba6b49b94ff730 (patch) | |
tree | 39c8d922c0f2614e77660694893b85043e62fed6 /hw/vfio | |
parent | 9812feefab3a4ff95a6cfd73aecb120b406bc98c (diff) |
vfio/container: Intoduce a new VFIOIOMMUClass::setup handler
This will help in converting the sPAPR IOMMU backend to a QOM interface.
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Tested-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio')
-rw-r--r-- | hw/vfio/container.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/vfio/container.c b/hw/vfio/container.c index 220e838a91..c22bdd3216 100644 --- a/hw/vfio/container.c +++ b/hw/vfio/container.c @@ -1129,6 +1129,7 @@ static void vfio_iommu_legacy_class_init(ObjectClass *klass, void *data) { VFIOIOMMUClass *vioc = VFIO_IOMMU_CLASS(klass); + vioc->setup = vfio_legacy_setup; vioc->dma_map = vfio_legacy_dma_map; vioc->dma_unmap = vfio_legacy_dma_unmap; vioc->attach_device = vfio_legacy_attach_device; |