[PATCH v3 27/28] drm/intel/pciids: Add match with VFIO override
From: Michał Winiarski
Date: Thu Oct 30 2025 - 16:34:10 EST
In order to allow VFIO users to choose the right driver override, VFIO
driver variant used for VF migration needs to use Intel Graphics PCI
IDs.
Add INTEL_VGA_VFIO_DEVICE match that sets VFIO override_only.
Signed-off-by: Michał Winiarski <michal.winiarski@xxxxxxxxx>
---
include/drm/intel/pciids.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/drm/intel/pciids.h b/include/drm/intel/pciids.h
index b258e79b437ac..d14ce43139a28 100644
--- a/include/drm/intel/pciids.h
+++ b/include/drm/intel/pciids.h
@@ -43,6 +43,13 @@
.class = PCI_BASE_CLASS_DISPLAY << 16, .class_mask = 0xff << 16, \
.driver_data = (kernel_ulong_t)(_info), \
}
+
+#define INTEL_VGA_VFIO_DEVICE(_id, _info) { \
+ PCI_DEVICE(PCI_VENDOR_ID_INTEL, (_id)), \
+ .class = PCI_BASE_CLASS_DISPLAY << 16, .class_mask = 0xff << 16, \
+ .driver_data = (kernel_ulong_t)(_info), \
+ .override_only = PCI_ID_F_VFIO_DRIVER_OVERRIDE, \
+}
#endif
#define INTEL_I810_IDS(MACRO__, ...) \
--
2.50.1