From a24c98b45ca1e9d56039d7649f65ac31e006d949 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juraj=20Linke=C5=A1?= Date: Mon, 9 Aug 2021 13:34:12 +0200 Subject: [PATCH] Ansible: VPP Device configure unsafe noiommu MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit VFs need /sys/module/vfio/parameters/enable_unsafe_noiommu_mode to be enabled on the host. Add this to Ansible. Change-Id: Iee1d0ccfdb4ea9b9d6981d39490fe7feb33bf70c Signed-off-by: Juraj Linkeš --- fdio.infra.ansible/roles/vpp_device/tasks/main.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml b/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml index d12fe1edf5..9dbee8d99d 100644 --- a/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml +++ b/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml @@ -129,3 +129,12 @@ - "Update GRUB" tags: - set-grub + +- name: Configure unsafe noiommu + lineinfile: + path: "/etc/modprobe.d/vfio-noiommu.conf" + state: "present" + line: "options vfio enable_unsafe_noiommu_mode=1" + create: "yes" + tags: + - configure-unsafe-noiommu -- 2.16.6