summary refs log tree commit diff stats
path: root/hw/vfio/container.c
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2025-03-26 08:51:01 +0100
committerCédric Le Goater <clg@redhat.com>2025-04-25 09:01:37 +0200
commitac28680d5e7a84943cd9f55a4aae245d6d7fdcae (patch)
tree893b65b395afc205c3ca5f54823f95307c04efc7 /hw/vfio/container.c
parent5cf52416e428836b1328ed47173a41948e1643bd (diff)
downloadfocaccia-qemu-ac28680d5e7a84943cd9f55a4aae245d6d7fdcae.tar.gz
focaccia-qemu-ac28680d5e7a84943cd9f55a4aae245d6d7fdcae.zip
vfio: Introduce a new header file for helper services
Gather all helper routine declarations into "vfio-helpers.h" to reduce
exposure of VFIO internals in "hw/vfio/vfio-common.h".

Reviewed-by: John Levon <john.levon@nutanix.com>
Link: https://lore.kernel.org/qemu-devel/20250318095415.670319-16-clg@redhat.com
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Link: https://lore.kernel.org/qemu-devel/20250326075122.1299361-17-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio/container.c')
-rw-r--r--hw/vfio/container.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/vfio/container.c b/hw/vfio/container.c
index 6ef53ee187..b2d72f5036 100644
--- a/hw/vfio/container.c
+++ b/hw/vfio/container.c
@@ -33,6 +33,7 @@
 #include "qapi/error.h"
 #include "pci.h"
 #include "hw/vfio/vfio-container.h"
+#include "vfio-helpers.h"
 
 #define TYPE_HOST_IOMMU_DEVICE_LEGACY_VFIO TYPE_HOST_IOMMU_DEVICE "-legacy-vfio"