[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/53] tests: acpi: arm/virt: use kvm to test IORT table
From: |
Igor Mammedov |
Subject: |
[PATCH 14/53] tests: acpi: arm/virt: use kvm to test IORT table |
Date: |
Fri, 25 Jun 2021 05:17:39 -0400 |
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
- v2: switch to qtest_has_accel() API
CC: thuth@redhat.com
CC: lvivier@redhat.com
CC: drjones@redhat.com
CC: qemu-arm@nongnu.org
---
tests/qtest/bios-tables-test.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 7084f0f795..ebe8ec0850 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1423,6 +1423,22 @@ static void test_acpi_virt_tcg(void)
free_test_data(&data);
}
+static void test_acpi_virt_iort(void)
+{
+ test_data data = {
+ .machine = "virt",
+ .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd",
+ .uefi_fl2 = "pc-bios/edk2-arm-vars.fd",
+ .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2",
+ .ram_start = 0x40000000ULL,
+ .scan_len = 128ULL * 1024 * 1024,
+ };
+
+ data.variant = ".iort";
+ test_acpi_one("-cpu host", &data);
+ free_test_data(&data);
+}
+
static void test_oem_fields(test_data *data)
{
int i;
@@ -1595,6 +1611,9 @@ int main(int argc, char *argv[])
qtest_add_func("acpi/virt/memhp", test_acpi_virt_tcg_memhp);
qtest_add_func("acpi/virt/pxb", test_acpi_virt_tcg_pxb);
qtest_add_func("acpi/virt/oem-fields", test_acpi_oem_fields_virt);
+ if (has_kvm) {
+ qtest_add_func("acpi/virt/iort", test_acpi_virt_iort);
+ }
}
ret = g_test_run();
boot_sector_cleanup(disk);
--
2.27.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 14/53] tests: acpi: arm/virt: use kvm to test IORT table,
Igor Mammedov <=