1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-08-21 17:34:31 +00:00

tools/packaging: Add options for VFIO to guest kernel

Pull  recently added support for a closer-to-OCI behaviour for
VFIO devices, in which they appear to the container as VFIO devices,
rather than being interpreted by the guest kernel.  However, in order
to use this, the Kata guest kernel needs to include the VFIO PCI
driver, along with dependencies like the Intel IOMMU driver.

The kernel as built by the scripts within Kata don't currently include
those, so this patch adds them.

fixes 

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2021-10-27 17:14:25 +11:00
parent b85edbfa00
commit bdf4824145
3 changed files with 9 additions and 1 deletions
tools/packaging/kernel
configs/fragments
common
x86_64
kata_config_version

View File

@ -0,0 +1,5 @@
# Options we need in order to handle vfio_mode=vfio devices
CONFIG_IOMMU_SUPPORT=y
CONFIG_VFIO=y
CONFIG_VFIO_PCI=y

View File

@ -0,0 +1,3 @@
# x86 specific items we need in order to handle vfio_mode=vfio devices
CONFIG_INTEL_IOMMU=y
CONFIG_IRQ_REMAP=y

View File

@ -1 +1 @@
86 87