summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathew McBride2024-03-15 03:16:05 +0000
committerRobert Marko2024-04-04 06:56:10 +0000
commit77e03f3c833a51858b16d923e1abcbd82de1e90c (patch)
tree506c2441296d50dea80c195bc31cfb348bd3f877
parent01ff257dce5e844b2d0e93917a0cc0f498beab27 (diff)
downloadopenwrt-77e03f3c833a51858b16d923e1abcbd82de1e90c.tar.gz
kernel: vfio: flag vfio_virqfd as only kernel 6.2 and earlier
Kernel 6.2 folded virqfd (eventd interface for VFIO interrupts) into the base vfio module, it is no longer a tristate option. Change suggested by vincejv on GitHub: https://github.com/openwrt/openwrt/pull/14868#issuecomment-1998260124 Signed-off-by: Mathew McBride <matt@traverse.com.au>
-rw-r--r--package/kernel/linux/modules/virt.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/kernel/linux/modules/virt.mk b/package/kernel/linux/modules/virt.mk
index f45cb17614..a408ac9b14 100644
--- a/package/kernel/linux/modules/virt.mk
+++ b/package/kernel/linux/modules/virt.mk
@@ -84,9 +84,9 @@ define KernelPackage/vfio
CONFIG_VFIO_MDEV=n
FILES:= \
$(LINUX_DIR)/drivers/vfio/vfio.ko \
- $(LINUX_DIR)/drivers/vfio/vfio_virqfd.ko \
+ $(LINUX_DIR)/drivers/vfio/vfio_virqfd.ko@lt6.2 \
$(LINUX_DIR)/drivers/vfio/vfio_iommu_type1.ko
- AUTOLOAD:=$(call AutoProbe,vfio vfio_iommu_type1 vfio_virqfd)
+ AUTOLOAD:=$(call AutoProbe,vfio vfio_iommu_type1 +LINUX_6_1:vfio_virqfd)
endef
define KernelPackage/vfio/description