These patches depend on the patchset: "Modularization of DFL private feature drivers" & "add dfl bus support to MODULE_DEVICE_TABLE()" https://lore.kernel.org/linux-fpga/1599488581-16386-1-git-send-email-yilun.xu@xxxxxxxxx/ This patchset provides an VFIO Mdev driver for dfl devices. It makes possible for dfl devices be direct accessed from userspace. Xu Yilun (3): fpga: dfl: add driver_override support fpga: dfl: VFIO mdev support for DFL devices Documentation: fpga: dfl: Add description for VFIO Mdev support Documentation/ABI/testing/sysfs-bus-dfl | 20 ++ Documentation/fpga/dfl.rst | 20 ++ drivers/fpga/Kconfig | 9 + drivers/fpga/Makefile | 1 + drivers/fpga/dfl.c | 54 ++++- drivers/fpga/vfio-mdev-dfl.c | 391 ++++++++++++++++++++++++++++++++ include/linux/fpga/dfl-bus.h | 2 + 7 files changed, 496 insertions(+), 1 deletion(-) create mode 100644 drivers/fpga/vfio-mdev-dfl.c -- 2.7.4