From 3878bd3e47c500f90d3c5cb110162b39a0d7e870 Mon Sep 17 00:00:00 2001 From: Piotr Kopec Date: Sun, 28 Jul 2019 00:26:09 +0200 Subject: [PATCH] Enable VFIO module on boot for SR-IOV deployments On SR-IOV capable deployments when rebooting a compute node, vfio_iommu_type1 will not be loaded which will cause guest instances with VF/PF fail to start/spawn. Manually loading the kernel module will allow to spawn guest instances successfully. Change-Id: I3ffd1c11a1851e62992a6a63e8abb130db82856f Closes-Bug: 1838159 --- extraconfig/pre_network/boot_param_tasks.yaml | 9 +++++++++ .../notes/enable-vfio-for-sriov-62b7bd67df250840.yaml | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 releasenotes/notes/enable-vfio-for-sriov-62b7bd67df250840.yaml diff --git a/extraconfig/pre_network/boot_param_tasks.yaml b/extraconfig/pre_network/boot_param_tasks.yaml index 842350ab95..454a6ace0e 100644 --- a/extraconfig/pre_network/boot_param_tasks.yaml +++ b/extraconfig/pre_network/boot_param_tasks.yaml @@ -30,6 +30,15 @@ - _KERNEL_ARGS_|default("") != "" - _KERNEL_ARGS_|default("") not in cmdline.stdout_lines[0] + # Kernel modules loading + - name: Load VFIO kernel module on boot + import_role: + name: tripleo-module-load + vars: + modules: + - name: vfio + when: _KERNEL_ARGS_ is search("iommu") + # Tune-d Configuration - block: - name: Check Tune-d Configuration file exists diff --git a/releasenotes/notes/enable-vfio-for-sriov-62b7bd67df250840.yaml b/releasenotes/notes/enable-vfio-for-sriov-62b7bd67df250840.yaml new file mode 100644 index 0000000000..a77ad0198c --- /dev/null +++ b/releasenotes/notes/enable-vfio-for-sriov-62b7bd67df250840.yaml @@ -0,0 +1,8 @@ +--- +fixes: + - | + Enable VFIO module on boot for SR-IOV deployments. + Before this change on SR-IOV capable deployments + when rebooting a compute node, vfio_iommu_type1 will + not be loaded which will cause guest instances with VF/PF + fail to start/spawn.