From 53d757722a687cc5c1047c40a02032f82d1595da Mon Sep 17 00:00:00 2001 From: Mathew McBride Date: Fri, 15 Mar 2024 14:16:05 +1100 Subject: [PATCH] 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 --- package/kernel/linux/modules/virt.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/kernel/linux/modules/virt.mk b/package/kernel/linux/modules/virt.mk index f45cb176147fc8..a408ac9b1498b9 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