diff options
| author | Cédric Le Goater <clg@redhat.com> | 2025-03-26 08:50:54 +0100 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2025-04-25 09:01:37 +0200 |
| commit | 5a339dd8c1e34e13ae7f64477e20decdf381aae7 (patch) | |
| tree | b30fe834f4c76385d61f7fc06d8a436355152761 /hw/vfio/spapr.c | |
| parent | aa173cb279e258ff591297fd0dedea43fd6f321d (diff) | |
| download | focaccia-qemu-5a339dd8c1e34e13ae7f64477e20decdf381aae7.tar.gz focaccia-qemu-5a339dd8c1e34e13ae7f64477e20decdf381aae7.zip | |
vfio: Move VFIOHostDMAWindow definition into spapr.c
VFIOHostDMAWindow is only used in file "spapr.c". Move it there. Reviewed-by: John Levon <john.levon@nutanix.com> Link: https://lore.kernel.org/qemu-devel/20250318095415.670319-9-clg@redhat.com Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Link: https://lore.kernel.org/qemu-devel/20250326075122.1299361-10-clg@redhat.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio/spapr.c')
| -rw-r--r-- | hw/vfio/spapr.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |