Re: [PATCH v2 16/21] tests: acpi: arm/virt: add GTDT watchdog table test case

2026-06-08 Thread Eric Auger



On 3/3/26 10:25 AM, Igor Mammedov wrote:
> Signed-off-by: Igor Mammedov 
> ---
>  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 = 0x4000ULL,
> +.scan_len = 128ULL * MiB,
> +};
> +
> +test_acpi_one("-cpu cortex-a57 " "-device sbsa_gwdt", &data);
> +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);
Reviewed-by: Eric Auger 

Eric

>  }
>  } else if (strcmp(arch, "riscv64") == 0) {
>  if (has_tcg && qtest_has_device("virtio-blk-pci")) {




Re: [PATCH v2 16/21] tests: acpi: arm/virt: add GTDT watchdog table test case

2026-05-27 Thread Igor Mammedov
On Tue, 26 May 2026 16:44:08 +0200
Eric Auger  wrote:

> On 3/3/26 10:25 AM, Igor Mammedov wrote:
> > Signed-off-by: Igor Mammedov 
> > ---
> >  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 = 0x4000ULL,
> > +.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")) {  
> 




Re: [PATCH v2 16/21] tests: acpi: arm/virt: add GTDT watchdog table test case

2026-05-26 Thread Eric Auger



On 3/3/26 10:25 AM, Igor Mammedov wrote:
> Signed-off-by: Igor Mammedov 
> ---
>  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 = 0x4000ULL,
> +.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

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")) {