Add vfio-pci support on all TB 98/13298/2
authorPeter Mikus <pmikus@cisco.com>
Fri, 29 Jun 2018 12:16:06 +0000 (12:16 +0000)
committerPeter Mikus <pmikus@cisco.com>
Fri, 29 Jun 2018 12:17:48 +0000 (12:17 +0000)
- Add auto load of vfio-pci
- Add iommu support

Change-Id: I13611fab9db2813eeab7f90c8f961594349e561e
Signed-off-by: Peter Mikus <pmikus@cisco.com>
resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/main.yaml

index cacae75..eeaeed4 100644 (file)
@@ -52,7 +52,7 @@
     path: '/etc/default/grub'\r
     state: 'present'\r
     regexp: '^GRUB_CMDLINE_LINUX='\r
-    line: 'GRUB_CMDLINE_LINUX="isolcpus={{ isolcpus }} nohz_full={{ isolcpus }} rcu_nocbs={{ isolcpus }} numa_balancing=disable intel_pstate=disable"'\r
+    line: 'GRUB_CMDLINE_LINUX="isolcpus={{ isolcpus }} nohz_full={{ isolcpus }} rcu_nocbs={{ isolcpus }} numa_balancing=disable intel_pstate=disable intel_iommu=on iommu=pt"'\r
   notify: ['Update GRUB']\r
   tags: set-grub\r
 \r
@@ -66,3 +66,7 @@
   pip:\r
     requirements: '/tmp/requirements.txt'\r
   tags: install-pip\r
+\r
+- name: Load vfio-pci by default\r
+  raw: 'echo vfio-pci | sudo tee -a /etc/modules'\r
+  tags: load-vfio-pci\r

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.