summary refs log tree commit diff stats
path: root/hw/vfio/container-base.c
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2023-11-02 15:12:36 +0800
committerCédric Le Goater <clg@redhat.com>2023-12-19 19:03:38 +0100
commit7ab1cb74ffdbf92ef237243b41bde5c7067d5298 (patch)
treec855cc5f57a7938340fd6b1ce7b44a809493072b /hw/vfio/container-base.c
parente1cac6b203f45b5322e831e8d50edfdf18609b09 (diff)
downloadfocaccia-qemu-7ab1cb74ffdbf92ef237243b41bde5c7067d5298.tar.gz
focaccia-qemu-7ab1cb74ffdbf92ef237243b41bde5c7067d5298.zip
vfio/container: Move pgsizes and dma_max_mappings to base container
No functional change intended.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio/container-base.c')
-rw-r--r--hw/vfio/container-base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/vfio/container-base.c b/hw/vfio/container-base.c
index 5d654ae172..dcce111349 100644
--- a/hw/vfio/container-base.c
+++ b/hw/vfio/container-base.c
@@ -52,6 +52,7 @@ void vfio_container_init(VFIOContainerBase *bcontainer, VFIOAddressSpace *space,
     bcontainer->ops = ops;
     bcontainer->space = space;
     bcontainer->dirty_pages_supported = false;
+    bcontainer->dma_max_mappings = 0;
     QLIST_INIT(&bcontainer->giommu_list);
 }