diff options
author | Juraj Linkeš <juraj.linkes@pantheon.tech> | 2021-08-09 13:34:12 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2021-08-18 07:12:52 +0000 |
commit | a24c98b45ca1e9d56039d7649f65ac31e006d949 (patch) | |
tree | cde4858701c8189820beb5429a9bd3bf1b695fe5 /fdio.infra.ansible/roles/vpp_device | |
parent | 6353e5b063a146fe4bd66437ef09f540b9f87514 (diff) |
Ansible: VPP Device configure unsafe noiommu
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>
Diffstat (limited to 'fdio.infra.ansible/roles/vpp_device')
-rw-r--r-- | fdio.infra.ansible/roles/vpp_device/tasks/main.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
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 |