Re: [PATCH v6 1/4] test/acpi: aarch64/virt: Test version 11.0

2026-05-20 Thread Igor Mammedov
On Wed, 20 May 2026 18:56:30 +0900
Akihiko Odaki  wrote:

> A future commit changes the memory map for the latest version of the
> machine. Test that the memory map of the previous version is preserved.
> 
> Suggested-by: Mohamed Mediouni 
> Signed-off-by: Akihiko Odaki 

Reviewed-by: Igor Mammedov 

> ---
>  tests/qtest/bios-tables-test.c | 24 
>  1 file changed, 24 insertions(+)
> 
> diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
> index 510751799e48..00e62699197a 100644
> --- a/tests/qtest/bios-tables-test.c
> +++ b/tests/qtest/bios-tables-test.c
> @@ -2214,6 +2214,28 @@ static void test_acpi_aarch64_virt_tcg(void)
>  free_test_data(&data);
>  }
>  
> +static void test_acpi_aarch64_virt_tcg_11_0(void)
> +{
> +test_data data = {
> +.machine = "virt",
> +.machine_param = "-11.0",
> +.arch = "aarch64",
> +.variant = ".11.0",
> +.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,
> +};
> +
> +data.smbios_cpu_max_speed = 2900;
> +data.smbios_cpu_curr_speed = 2700;
> +test_acpi_one("-cpu cortex-a57 -machine ras=on "
> +  "-smbios type=4,max-speed=2900,current-speed=2700", &data);
> +free_test_data(&data);
> +}
> +
>  static void test_acpi_aarch64_virt_tcg_topology(void)
>  {
>  test_data data = {
> @@ -2851,6 +2873,8 @@ int main(int argc, char *argv[])
>  } else if (strcmp(arch, "aarch64") == 0) {
>  if (has_tcg && qtest_has_device("virtio-blk-pci")) {
>  qtest_add_func("acpi/virt", test_acpi_aarch64_virt_tcg);
> +qtest_add_func("acpi/virt/11.0",
> +   test_acpi_aarch64_virt_tcg_11_0);
>  qtest_add_func("acpi/virt/acpihmatvirt",
> test_acpi_aarch64_virt_tcg_acpi_hmat);
>  qtest_add_func("acpi/virt/topology",
> 




[PATCH v6 1/4] test/acpi: aarch64/virt: Test version 11.0

2026-05-20 Thread Akihiko Odaki
A future commit changes the memory map for the latest version of the
machine. Test that the memory map of the previous version is preserved.

Suggested-by: Mohamed Mediouni 
Signed-off-by: Akihiko Odaki 
---
 tests/qtest/bios-tables-test.c | 24 
 1 file changed, 24 insertions(+)

diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 510751799e48..00e62699197a 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -2214,6 +2214,28 @@ static void test_acpi_aarch64_virt_tcg(void)
 free_test_data(&data);
 }
 
+static void test_acpi_aarch64_virt_tcg_11_0(void)
+{
+test_data data = {
+.machine = "virt",
+.machine_param = "-11.0",
+.arch = "aarch64",
+.variant = ".11.0",
+.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,
+};
+
+data.smbios_cpu_max_speed = 2900;
+data.smbios_cpu_curr_speed = 2700;
+test_acpi_one("-cpu cortex-a57 -machine ras=on "
+  "-smbios type=4,max-speed=2900,current-speed=2700", &data);
+free_test_data(&data);
+}
+
 static void test_acpi_aarch64_virt_tcg_topology(void)
 {
 test_data data = {
@@ -2851,6 +2873,8 @@ int main(int argc, char *argv[])
 } else if (strcmp(arch, "aarch64") == 0) {
 if (has_tcg && qtest_has_device("virtio-blk-pci")) {
 qtest_add_func("acpi/virt", test_acpi_aarch64_virt_tcg);
+qtest_add_func("acpi/virt/11.0",
+   test_acpi_aarch64_virt_tcg_11_0);
 qtest_add_func("acpi/virt/acpihmatvirt",
test_acpi_aarch64_virt_tcg_acpi_hmat);
 qtest_add_func("acpi/virt/topology",

-- 
2.54.0