[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 07/15] tests: acpi: add testcase for intel_iommu (DMAR table)
From: |
Igor Mammedov |
Subject: |
[PATCH v2 07/15] tests: acpi: add testcase for intel_iommu (DMAR table) |
Date: |
Thu, 2 Sep 2021 07:35:43 -0400 |
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
v2:
* add 'kvm' prefix to test name
CC: thuth@redhat.com
CC: lvivier@redhat.com
---
tests/qtest/bios-tables-test.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 1f6779da87..4abeaa6f6b 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1090,6 +1090,18 @@ static void test_acpi_q35_tcg_nohpet(void)
free_test_data(&data);
}
+static void test_acpi_q35_kvm_dmar(void)
+{
+ test_data data;
+
+ memset(&data, 0, sizeof(data));
+ data.machine = MACHINE_Q35;
+ data.variant = ".dmar";
+ test_acpi_one("-machine kernel-irqchip=split -accel kvm"
+ " -device intel-iommu,intremap=on,device-iotlb=on", &data);
+ free_test_data(&data);
+}
+
static void test_acpi_piix4_tcg_numamem(void)
{
test_data data;
@@ -1577,6 +1589,7 @@ int main(int argc, char *argv[])
}
if (has_kvm) {
qtest_add_func("acpi/q35/kvm/xapic", test_acpi_q35_kvm_xapic);
+ qtest_add_func("acpi/q35/kvm/dmar", test_acpi_q35_kvm_dmar);
}
} else if (strcmp(arch, "aarch64") == 0) {
qtest_add_func("acpi/virt", test_acpi_virt_tcg);
--
2.27.0
- [PATCH v2 00/15] tests: acpi: add x2apic and various iommu tests, Igor Mammedov, 2021/09/02
- [PATCH v2 01/15] tests: acpi: dump table with failed checksum, Igor Mammedov, 2021/09/02
- [PATCH v2 04/15] tests: acpi: q35: test for x2APIC entries in SRAT, Igor Mammedov, 2021/09/02
- [PATCH v2 02/15] tests: qtest: add qtest_has_accel() to check if tested binary supports accelerator, Igor Mammedov, 2021/09/02
- [PATCH v2 03/15] tests: acpi: whitelist expected tables for acpi/q35/xapic testcase, Igor Mammedov, 2021/09/02
- [PATCH v2 06/15] tests: acpi: whitelist new expected table tests/data/acpi/q35/DMAR.dmar, Igor Mammedov, 2021/09/02
- [PATCH v2 08/15] tests: acpi: add expected blob for DMAR table, Igor Mammedov, 2021/09/02
- [PATCH v2 09/15] tests: acpi: whitelist expected blobs for new acpi/q35/ivrs testcase, Igor Mammedov, 2021/09/02
- [PATCH v2 05/15] tests: acpi: update expected tables blobs, Igor Mammedov, 2021/09/02
- [PATCH v2 07/15] tests: acpi: add testcase for intel_iommu (DMAR table),
Igor Mammedov <=
- [PATCH v2 10/15] tests: acpi: add testcase for amd-iommu (IVRS table), Igor Mammedov, 2021/09/02
- [PATCH v2 11/15] tests: acpi: update expected blobs, Igor Mammedov, 2021/09/02
- [PATCH v2 13/15] tests: arm-cpu-features: use qtest_has_kvm() API, Igor Mammedov, 2021/09/02
- [PATCH v2 12/15] tests: acpi: arm/virt: drop redundant test_acpi_one() in test_acpi_virt_tcg(), Igor Mammedov, 2021/09/02
- [PATCH v2 14/15] tests: migration-test: use qtest_has_accel() API, Igor Mammedov, 2021/09/02
- [PATCH v2 15/15] tests: bios-tables-test: use qtest_has_accel() API to register TCG only tests, Igor Mammedov, 2021/09/02