aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2023-12-19 07:58:21 +0100
committerCédric Le Goater <clg@redhat.com>2024-01-05 21:25:20 +0100
commit61d893f2cdb34a2b0255f9b5fbba6b49b94ff730 (patch)
tree39c8d922c0f2614e77660694893b85043e62fed6 /include
parent9812feefab3a4ff95a6cfd73aecb120b406bc98c (diff)
downloadqemu-61d893f2cdb34a2b0255f9b5fbba6b49b94ff730.zip
qemu-61d893f2cdb34a2b0255f9b5fbba6b49b94ff730.tar.gz
qemu-61d893f2cdb34a2b0255f9b5fbba6b49b94ff730.tar.bz2
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 'include')
-rw-r--r--include/hw/vfio/vfio-container-base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-container-base.h b/include/hw/vfio/vfio-container-base.h
index c60370f..ce8b1fb 100644
--- a/include/hw/vfio/vfio-container-base.h
+++ b/include/hw/vfio/vfio-container-base.h
@@ -109,6 +109,7 @@ struct VFIOIOMMUClass {
InterfaceClass parent_class;
/* basic feature */
+ int (*setup)(VFIOContainerBase *bcontainer, Error **errp);
int (*dma_map)(const VFIOContainerBase *bcontainer,
hwaddr iova, ram_addr_t size,
void *vaddr, bool readonly);