qtest/bios-tables: Add DMAR aml file and enable intel_iommu for q35
PATCH v3 1/1 qtest/bios-tables: Add DMAR aml file and enable intel_iommu for q35
We generate the expected DMAR table and enable intel_iommu on q35 to test the table.
Signed-off-by Vasilis Liaskovitis <[email protected]>
--- tests/acpi-test-data/q35/DMAR | Bin 0 -> 64 bytes tests/bios-tables-test.c | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/acpi-test-data/q35/DMAR
tests/acpi-test-data/q35/DMAR new file binary +0 -0
tests/bios-tables-test.c +1 -1
@@ -779,7 +779,7 @@ static void test_acpi_tcg(void)memset (&data,0 ,sizeof (data)); data.machine =MACHINE_Q35 ; -test_acpi_one ("-machine q35,accel=tcg" , &data); +test_acpi_one ("-machine q35,accel=tcg,iommu=on" , &data);free_test_data (&data); }
Signature · 1 line
1.9.1
Quoted 25 lines · Vasilis Liaskovitis
We generate the expected DMAR table and enable
intel_iommuon q35 to test the table.Signed-off-by Vasilis Liaskovitis <[email protected]>--- tests/acpi-test-data/q35/DMAR | Bin 0 -> 64 bytes tests/bios-tables-test.c | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/acpi-test-data/q35/DMARtests/acpi-test-data/q35/DMAR new file binary +0
-0tests/bios-tables-test.c +0
-0
tests/bios-tables-test.c static void test_acpi_tcg(void) · line 785
Quoted 8 lines
tests/bios-tables-test.c +1
-1@@ -779,7 +779,7 @@ static void test_acpi_tcg(void)memset (&data,0 ,sizeof (data)); data.machine =MACHINE_Q35 ; -test_acpi_one ("-machine q35,accel=tcg" , &data); +test_acpi_one ("-machine q35,accel=tcg,iommu=on" , &data);free_test_data (&data); }
Reviewed-by Marcel Apfelbaum <[email protected]>