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 <mohamed@unpredictable.fr>
Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
---
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 6b892ef23e1a..3c032173dbf4 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -2213,6 +2213,28 @@ static void test_acpi_aarch64_virt_tcg(void)
free_test_data(&data);
}
+static void test_acpi_aarch64_virt_tcg_10_2(void)
+{
+ test_data data = {
+ .machine = "virt",
+ .machine_param = "-10.2",
+ .arch = "aarch64",
+ .variant = ".10.2",
+ .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,
+ };
+
+ 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 = {
@@ -2827,6 +2849,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/10.2",
+ test_acpi_aarch64_virt_tcg_10_2);
qtest_add_func("acpi/virt/acpihmatvirt",
test_acpi_aarch64_virt_tcg_acpi_hmat);
qtest_add_func("acpi/virt/topology",
--
2.52.0