diff options
author | Peter Mikus <pmikus@cisco.com> | 2018-06-29 12:16:06 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2018-06-29 12:17:48 +0000 |
commit | 6f42dfbc805acae52adf7454cf213091d00141db (patch) | |
tree | 93612c8a144ad77a5bafa2555700d7e8328f0496 /resources/tools/testbed-setup/ansible | |
parent | 4b0df8e7baea755e2e1a1c27a7707fb0a3f28b6e (diff) |
Add vfio-pci support on all TB
- Add auto load of vfio-pci
- Add iommu support
Change-Id: I13611fab9db2813eeab7f90c8f961594349e561e
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/ansible')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/main.yaml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/main.yaml index cacae7507b..eeaeed4ffb 100644 --- a/resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/main.yaml @@ -52,7 +52,7 @@ path: '/etc/default/grub'
state: 'present'
regexp: '^GRUB_CMDLINE_LINUX='
- line: 'GRUB_CMDLINE_LINUX="isolcpus={{ isolcpus }} nohz_full={{ isolcpus }} rcu_nocbs={{ isolcpus }} numa_balancing=disable intel_pstate=disable"'
+ line: 'GRUB_CMDLINE_LINUX="isolcpus={{ isolcpus }} nohz_full={{ isolcpus }} rcu_nocbs={{ isolcpus }} numa_balancing=disable intel_pstate=disable intel_iommu=on iommu=pt"'
notify: ['Update GRUB']
tags: set-grub
@@ -66,3 +66,7 @@ pip:
requirements: '/tmp/requirements.txt'
tags: install-pip
+
+- name: Load vfio-pci by default
+ raw: 'echo vfio-pci | sudo tee -a /etc/modules'
+ tags: load-vfio-pci
|