Derived parameters: Add AMD iommu support
Change-Id: Ia6e9124c8a17ac77af31be347ab2426c82dbace4 Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
This commit is contained in:
parent
d5c0d17a58
commit
f8631abe75
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue