From: Cédric Le Goater Date: Wed, 26 Mar 2025 07:50:54 +0000 (+0100) Subject: vfio: Move VFIOHostDMAWindow definition into spapr.c X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a339dd8c1e34e13ae7f64477e20decdf381aae7;p=thirdparty%2Fqemu.git vfio: Move VFIOHostDMAWindow definition into spapr.c VFIOHostDMAWindow is only used in file "spapr.c". Move it there. Reviewed-by: John Levon Link: https://lore.kernel.org/qemu-devel/20250318095415.670319-9-clg@redhat.com Reviewed-by: Zhenzhong Duan Link: https://lore.kernel.org/qemu-devel/20250326075122.1299361-10-clg@redhat.com Signed-off-by: Cédric Le Goater --- diff --git a/hw/vfio/spapr.c b/hw/vfio/spapr.c index 7e5cb95f6a..f21955a344 100644 --- a/hw/vfio/spapr.c +++ b/hw/vfio/spapr.c @@ -22,6 +22,13 @@ #include "qapi/error.h" #include "trace.h" +typedef struct VFIOHostDMAWindow { + hwaddr min_iova; + hwaddr max_iova; + uint64_t iova_pgsizes; + QLIST_ENTRY(VFIOHostDMAWindow) hostwin_next; +} VFIOHostDMAWindow; + typedef struct VFIOSpaprContainer { VFIOContainer container; MemoryListener prereg_listener; diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index 528eafadf9..83b1f7be80 100644 --- a/include/hw/vfio/vfio-common.h +++ b/include/hw/vfio/vfio-common.h @@ -69,13 +69,6 @@ typedef struct VFIOContainer { OBJECT_DECLARE_SIMPLE_TYPE(VFIOContainer, VFIO_IOMMU_LEGACY); -typedef struct VFIOHostDMAWindow { - hwaddr min_iova; - hwaddr max_iova; - uint64_t iova_pgsizes; - QLIST_ENTRY(VFIOHostDMAWindow) hostwin_next; -} VFIOHostDMAWindow; - typedef struct IOMMUFDBackend IOMMUFDBackend; typedef struct VFIOIOASHwpt {