Derived parameters: Add AMD iommu support

Change-Id: Ia6e9124c8a17ac77af31be347ab2426c82dbace4
Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
This commit is contained in:
Christophe Fontaine 2020-12-01 19:13:36 +01:00
parent d5c0d17a58
commit f8631abe75
1 changed files with 4 additions and 3 deletions

View File

@ -78,13 +78,14 @@
set_fact:
hugepages: "{{ (((total_memory | int)/1024)-4)*((huge_page_allocation_percentage|float)/100) }}"
- name: Get cpu modal
- name: Get cpu model
set_fact:
intel_cpu_modal: "{{ 'Intel' in hw_data.get('inventory', {}).get('cpu', {}).get('model_name', '') }}"
intel_cpu_model: "{{ 'Intel' in hw_data.get('inventory', {}).get('cpu', {}).get('model_name', '') }}"
amd_cpu_model: "{{ 'AMD' in hw_data.get('inventory', {}).get('cpu', {}).get('model_name', '') }}"
- name: Get iommu info
set_fact:
iommu_info: "{% if intel_cpu_modal %}intel_iommu=on iommu=pt{% else %}{% endif %}"
iommu_info: "{% if intel_cpu_model %}intel_iommu=on iommu=pt{% elif amd_cpu_model %}amd_iommu=on iommu=pt{% else %}{% endif %}"
- name: Get kernel args
set_fact: