Test new PPTT table with cache representation.

Signed-off-by: Alireza Sanaee <alireza.san...@huawei.com>
Reviewed-by: Jonathan Cameron <jonathan.came...@huawei.com>
---
 tests/qtest/bios-tables-test.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 0a333ec43536..8218b39de7cb 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1846,7 +1846,10 @@ static void test_acpi_aarch64_virt_tcg_acpi_hmat(void)
 
     data.variant = ".acpihmatvirt";
 
-    test_acpi_one(" -machine hmat=on"
+    test_acpi_one(" -machine hmat=on "
+                  "-M virt,smp-cache.0.cache=l1i,smp-cache.0.topology=core,"
+                  "smp-cache.1.cache=l1d,smp-cache.1.topology=core,"
+                  "smp-cache.2.cache=l2,smp-cache.2.topology=core "
                   " -cpu cortex-a57"
                   " -smp 4,sockets=2"
                   " -m 384M"
@@ -2123,6 +2126,9 @@ static void test_acpi_aarch64_virt_tcg(void)
     data.smbios_cpu_max_speed = 2900;
     data.smbios_cpu_curr_speed = 2700;
     test_acpi_one("-cpu cortex-a57 "
+                  "-M virt,smp-cache.0.cache=l1i,smp-cache.0.topology=core,"
+                  "smp-cache.1.cache=l1d,smp-cache.1.topology=core,"
+                  "smp-cache.2.cache=l2,smp-cache.2.topology=core "
                   "-smbios type=4,max-speed=2900,current-speed=2700", &data);
     free_test_data(&data);
 }
@@ -2142,6 +2148,9 @@ static void test_acpi_aarch64_virt_tcg_topology(void)
     };
 
     test_acpi_one("-cpu cortex-a57 "
+                  "-M virt,smp-cache.0.cache=l1i,smp-cache.0.topology=core,"
+                  "smp-cache.1.cache=l1d,smp-cache.1.topology=core,"
+                  "smp-cache.2.cache=l2,smp-cache.2.topology=core "
                   "-smp sockets=1,clusters=2,cores=2,threads=2", &data);
     free_test_data(&data);
 }
@@ -2227,6 +2236,9 @@ static void test_acpi_aarch64_virt_viot(void)
     };
 
     test_acpi_one("-cpu cortex-a57 "
+                  "-M virt,smp-cache.0.cache=l1i,smp-cache.0.topology=core,"
+                  "smp-cache.1.cache=l1d,smp-cache.1.topology=core,"
+                  "smp-cache.2.cache=l2,smp-cache.2.topology=core "
                   "-device virtio-iommu-pci", &data);
     free_test_data(&data);
 }
-- 
2.34.1


Reply via email to