Skip to contentSkip to conversation

qtest/bios-tables: Add DMAR aml file and enable intel_iommu for q35

PATCH In review Vasilis Liaskovitis 2 participants 2 messages Dec 2, 2014

lore
Share & tools
lore
#0 lore raw

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.

---
 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
new file mode 100644
index 0000000000000000000000000000000000000000..6def4553381f4e48b80ead11af2adf6ce09c8c7e
GIT binary patch
tests/bios-tables-test.c +1 -1
index 9e4d205..6975d49 100644
@@ -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
Reviewed-by on v3 1/1
#1 lore raw
Quoted 25 lines · Vasilis Liaskovitis

We generate the expected DMAR table and enable intel_iommu on q35 to test the table.

---
 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
new file mode 100644
index 0000000000000000000000000000000000000000..6def4553381f4e48b80ead11af2adf6ce09c8c7e
GIT binary patch
tests/bios-tables-test.c +0 -0
index 9e4d205..6975d49 100644

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);
 }