Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
665B

  1. {%- from "linux/map.jinja" import system with context %}
  2. include:
  3. - linux.system.grub
  4. /etc/default/grub.d/90-sriov.cfg:
  5. file.managed:
  6. - contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT intel_iommu=on iommu=pt"'
  7. - require:
  8. - file: grub_d_directory
  9. - watch_in:
  10. - cmd: grub_update
  11. /etc/modprobe.d/sriov.conf:
  12. file.managed:
  13. - contents: |
  14. blacklist ixgbevf
  15. blacklist igbvf
  16. blacklist i40evf
  17. {%- if system.kernel.get('unsafe_interrupts', false) %}
  18. /etc/modprobe.d/iommu_unsafe_interrupts.conf:
  19. file.managed:
  20. - contents: options vfio_iommu_type1 allow_unsafe_interrupts=1
  21. {%- endif %}