On Tue, 26 May 2026 16:44:08 +0200 Eric Auger <[email protected]> wrote:
> On 3/3/26 10:25 AM, Igor Mammedov wrote: > > Signed-off-by: Igor Mammedov <[email protected]> > > --- > > tests/qtest/bios-tables-test.c | 20 ++++++++++++++++++++ > > 1 file changed, 20 insertions(+) > > > > diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c > > index 5082866184..11c6854af8 100644 > > --- a/tests/qtest/bios-tables-test.c > > +++ b/tests/qtest/bios-tables-test.c > > @@ -2290,6 +2290,24 @@ static void test_acpi_aarch64_virt_tcg_wdat(void) > > free_test_data(&data); > > } > > > > +static void test_acpi_aarch64_virt_tcg_gtdt_wd(void) > > +{ > > + test_data data = { > > + .machine = "virt", > > + .arch = "aarch64", > > + .variant = ".gwdt", > > + .tcg_only = true, > > + .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 * MiB, > > + }; > > + > > + test_acpi_one("-cpu cortex-a57 " "-device sbsa_gwdt", &data); > depends on the instantiation strategy, ie. whether Peter is OK with > dynamic sysbus instantiation machine option in v1 to do the same opened another can of worms that I think consensus was it would be better go with -device. > > Thanks > > Eric > > + free_test_data(&data); > > +} > > + > > static void test_acpi_q35_viot(void) > > { > > test_data data = { > > @@ -2910,6 +2928,8 @@ int main(int argc, char *argv[]) > > } > > qtest_add_func("acpi/virt/acpi-watchdog", > > test_acpi_aarch64_virt_tcg_wdat); > > + qtest_add_func("acpi/virt/gwdt-watchdog", > > + test_acpi_aarch64_virt_tcg_gtdt_wd); > > } > > } else if (strcmp(arch, "riscv64") == 0) { > > if (has_tcg && qtest_has_device("virtio-blk-pci")) { >
