package/linux: add vfio modules
This commit is contained in:
parent
c47c0637c8
commit
aee9b174b3
|
@ -72,3 +72,63 @@ define KernelPackage/kvm-amd/description
|
|||
endef
|
||||
|
||||
$(eval $(call KernelPackage,kvm-amd))
|
||||
|
||||
define KernelPackage/vfio
|
||||
SUBMENU:=Virtualization
|
||||
TITLE:=VFIO Non-Privileged userspace driver framework
|
||||
DEPENDS:=@TARGET_x86_64
|
||||
KCONFIG:= \
|
||||
CONFIG_VFIO \
|
||||
CONFIG_VFIO_NOIOMMU=n
|
||||
MODPARAMS.vfio:=\
|
||||
enable_unsafe_noiommu_mode=n
|
||||
FILES:= \
|
||||
$(LINUX_DIR)/drivers/vfio/vfio.ko \
|
||||
$(LINUX_DIR)/drivers/vfio/vfio_virqfd.ko \
|
||||
$(LINUX_DIR)/drivers/vfio/vfio_iommu_type1.ko
|
||||
AUTOLOAD:=$(call AutoProbe,vfio vfio_iommu_type1 vfio_virqfd)
|
||||
endef
|
||||
|
||||
define KernelPackage/vfio/description
|
||||
VFIO provides a framework for secure userspace device drivers.
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,vfio))
|
||||
|
||||
define KernelPackage/vfio-mdev
|
||||
SUBMENU:=Virtualization
|
||||
TITLE:=Mediated device driver framework
|
||||
DEPENDS:=@TARGET_x86_64 +kmod-vfio
|
||||
KCONFIG:= \
|
||||
CONFIG_VFIO_MDEV \
|
||||
CONFIG_VFIO_MDEV_DEVICE
|
||||
FILES:= \
|
||||
$(LINUX_DIR)/drivers/vfio/mdev/mdev.ko \
|
||||
$(LINUX_DIR)/drivers/vfio/mdev/vfio_mdev.ko
|
||||
AUTOLOAD:=$(call AutoProbe,vfio_mdev)
|
||||
endef
|
||||
|
||||
define KernelPackage/vfio-mdev/description
|
||||
VFIO Mediated device provides a framework to virtualize devices.
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,vfio-mdev))
|
||||
|
||||
define KernelPackage/vfio-pci
|
||||
SUBMENU:=Virtualization
|
||||
TITLE:=Generic VFIO support for any PCI device
|
||||
DEPENDS:=@TARGET_x86_64 @PCI_SUPPORT +kmod-vfio +kmod-irqbypass
|
||||
KCONFIG:= \
|
||||
CONFIG_VFIO_PCI \
|
||||
CONFIG_VFIO_PCI_IGD=y
|
||||
FILES:= \
|
||||
$(LINUX_DIR)/drivers/vfio/pci/vfio-pci.ko
|
||||
AUTOLOAD:=$(call AutoProbe,vfio-pci)
|
||||
endef
|
||||
|
||||
define KernelPackage/vfio-pci/description
|
||||
Support for the generic PCI VFIO bus driver which can connect any PCI
|
||||
device to the VFIO framework.
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,vfio-pci))
|
||||
|
|
|
@ -106,6 +106,7 @@ CONFIG_DRM_FBDEV_OVERALLOC=100
|
|||
CONFIG_DRM_GEM_SHMEM_HELPER=y
|
||||
CONFIG_DRM_I915_FENCE_TIMEOUT=10000
|
||||
CONFIG_DRM_I915_FORCE_PROBE=""
|
||||
# CONFIG_DRM_I915_GVT_KVMGT is not set
|
||||
CONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500
|
||||
CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=8000
|
||||
CONFIG_DRM_I915_PREEMPT_TIMEOUT=640
|
||||
|
@ -388,11 +389,14 @@ CONFIG_THERMAL_WRITABLE_TRIPS=y
|
|||
# CONFIG_TOSHIBA_BT_RFKILL is not set
|
||||
CONFIG_TREE_RCU=y
|
||||
CONFIG_TREE_SRCU=y
|
||||
# CONFIG_UACCE is not set
|
||||
# CONFIG_UCLAMP_TASK is not set
|
||||
CONFIG_UCS2_STRING=y
|
||||
# CONFIG_UNWINDER_ORC is not set
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_USB_UAS=y
|
||||
# CONFIG_VFIO_MDEV is not set
|
||||
# CONFIG_VFIO_PCI is not set
|
||||
CONFIG_VIRTIO=y
|
||||
CONFIG_VIRTIO_BALLOON=y
|
||||
CONFIG_VIRTIO_BLK=y
|
||||
|
|
Loading…
Reference in New Issue