tests: acpi: arm/virt: add GTDT watchdog table test case
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260702145856.1539572-13-imammedo@redhat.com>
Igor Mammedov committed
Jul 2, 2026 at 16:58 UTC
c2a283fe9989a1839e931daf664f192339f5ce7e
1 file changed
+20
tests/qtest/bios-tables-test.c
+20
@@ -2314,6 +2314,24 @@ static void test_acpi_aarch64_virt_tcg_wdat(void)
2314
free_test_data(&data);
2315
}
2316
2317
+static void test_acpi_aarch64_virt_tcg_gtdt_wd(void)
2318
+{
2319
+ test_data data = {
2320
+ .machine = "virt",
2321
+ .arch = "aarch64",
2322
+ .variant = ".gwdt",
2323
+ .tcg_only = true,
2324
+ .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd",
2325
+ .uefi_fl2 = "pc-bios/edk2-arm-vars.fd",
2326
+ .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2",
2327
+ .ram_start = 0x40000000ULL,
2328
+ .scan_len = 128ULL * MiB,
2329
+ };
2330
+
2331
+ test_acpi_one("-cpu cortex-a57 -device sbsa-gwdt", &data);
2332
+ free_test_data(&data);
2333
+}
2334
+
2335
static void test_acpi_q35_viot(void)
2336
{
2337
test_data data = {
@@ -2935,6 +2953,8 @@ int main(int argc, char *argv[])
2953
}
2954
qtest_add_func("acpi/virt/acpi-watchdog",
2955
test_acpi_aarch64_virt_tcg_wdat);
2956
+ qtest_add_func("acpi/virt/gwdt-watchdog",
2957
+ test_acpi_aarch64_virt_tcg_gtdt_wd);
2958
}
2959
} else if (strcmp(arch, "riscv64") == 0) {
2960
if (has_tcg && qtest_has_device("virtio-blk-pci")) {