tests: acpi: arm/virt: add WDAT 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-10-imammedo@redhat.com>
Igor Mammedov committed
Jul 2, 2026 at 16:58 UTC
a9618086355030ed0629d960659960adc27b255d
1 file changed
+21
tests/qtest/bios-tables-test.c
+21
@@ -2295,6 +2295,25 @@ static void test_acpi_aarch64_virt_tcg_msi_gicv2m(void)
2295
free_test_data(&data);
2296
}
2297
2298
+static void test_acpi_aarch64_virt_tcg_wdat(void)
2299
+{
2300
+ test_data data = {
2301
+ .machine = "virt",
2302
+ .arch = "aarch64",
2303
+ .variant = ".wdat",
2304
+ .tcg_only = true,
2305
+ .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd",
2306
+ .uefi_fl2 = "pc-bios/edk2-arm-vars.fd",
2307
+ .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2",
2308
+ .ram_start = 0x40000000ULL,
2309
+ .scan_len = 128ULL * MiB,
2310
+ };
2311
+
2312
+ test_acpi_one("-cpu cortex-a57 "
2313
+ "-device sbsa-gwdt,wdat=on", &data);
2314
+ free_test_data(&data);
2315
+}
2316
+
2317
static void test_acpi_q35_viot(void)
2318
{
2319
test_data data = {
@@ -2914,6 +2933,8 @@ int main(int argc, char *argv[])
2933
qtest_add_func("acpi/virt/smmuv3-dev",
2934
test_acpi_aarch64_virt_smmuv3_dev);
2935
}
2936
+ qtest_add_func("acpi/virt/acpi-watchdog",
2937
+ test_acpi_aarch64_virt_tcg_wdat);
2938
}
2939
} else if (strcmp(arch, "riscv64") == 0) {
2940
if (has_tcg && qtest_has_device("virtio-blk-pci")) {