Ansible: VPP Device configure unsafe noiommu 25/33425/2
authorJuraj Linkeš <juraj.linkes@pantheon.tech>
Mon, 9 Aug 2021 11:34:12 +0000 (13:34 +0200)
committerPeter Mikus <pmikus@cisco.com>
Wed, 18 Aug 2021 07:12:52 +0000 (07:12 +0000)
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š <juraj.linkes@pantheon.tech>
fdio.infra.ansible/roles/vpp_device/tasks/main.yaml

index d12fe1e..9dbee8d 100644 (file)
     - "Update GRUB"
   tags:
     - set-grub
     - "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