summary refs log tree commit diff stats
path: root/include/hw/vfio/vfio-container-base.h
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2023-11-02 15:12:40 +0800
committerCédric Le Goater <clg@redhat.com>2023-12-19 19:03:38 +0100
commitf79baf8c9575ac3193ca86ec508791c86d96b13e (patch)
tree0370497193f2f899575b3b9eb83026de68c423c2 /include/hw/vfio/vfio-container-base.h
parent4d6b95010c59127ac4f7230d6ee88b5d0e99738c (diff)
downloadfocaccia-qemu-f79baf8c9575ac3193ca86ec508791c86d96b13e.tar.gz
focaccia-qemu-f79baf8c9575ac3193ca86ec508791c86d96b13e.zip
vfio/container: Move iova_ranges to base container
Meanwhile remove the helper function vfio_free_container as it
only calls g_free now.

No functional change intended.

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 'include/hw/vfio/vfio-container-base.h')
-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 80e4a993c5..9658ffb526 100644
--- a/include/hw/vfio/vfio-container-base.h
+++ b/include/hw/vfio/vfio-container-base.h
@@ -48,6 +48,7 @@ typedef struct VFIOContainerBase {
     QLIST_HEAD(, VFIORamDiscardListener) vrdl_list;
     QLIST_ENTRY(VFIOContainerBase) next;
     QLIST_HEAD(, VFIODevice) device_list;
+    GList *iova_ranges;
 } VFIOContainerBase;
 
 typedef struct VFIOGuestIOMMU {