FYI, I first tried this vfio-8.2 branch on s390x but wasn't actually able to
use the
iommufd backend (was getting errors like Property 'vfio-pci.iommufd' not found)
so I think something isn't actually enabling IOMMUFD as expected with your
change...
It looks CONFIG_IOMMUFD is recognized by Kconfig sub-system but not received
by compiler. I'm still digging how to pass CONFIG_IOMMUFD to compiler.
Need below change to pass CONFIG_IOMMUFD to compiler.
diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c
index 0a810f8b88..2a3263b51f 100644
--- a/hw/vfio/ap.c
+++ b/hw/vfio/ap.c
@@ -30,6 +30,7 @@
#include "exec/address-spaces.h"
#include "qom/object.h"
#include "monitor/monitor.h"
+#include CONFIG_DEVICES
#define TYPE_VFIO_AP_DEVICE "vfio-ap"
diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c
index a674bd8d6d..08101ad445 100644
--- a/hw/vfio/ccw.c
+++ b/hw/vfio/ccw.c
@@ -31,6 +31,7 @@
#include "qemu/main-loop.h"
#include "qemu/module.h"
#include "monitor/monitor.h"
+#include CONFIG_DEVICES
struct VFIOCCWDevice {
S390CCWDevice cdev;
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index d8f658ea47..3121b5f985 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -44,6 +44,7 @@
#include "migration/qemu-file.h"
#include "sysemu/iommufd.h"
#include "monitor/monitor.h"
+#include CONFIG_DEVICES
#define TYPE_VFIO_PCI_NOHOTPLUG "vfio-pci-nohotplug"
yep. I pushed forced vfio-8.2 with these changes.
Thanks,
C.