[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/16] tests: bios-tables-test: Extend core count2 test to cover
From: |
Zhao Liu |
Subject: |
[PATCH 09/16] tests: bios-tables-test: Extend core count2 test to cover general topology |
Date: |
Fri, 25 Aug 2023 11:36:12 +0800 |
From: Zhao Liu <zhao1.liu@intel.com>
Currently, this case just covers the topology with only core and smt
levels, and doesn't consider more topology layers between socket and
core.
To cover the fixed case in the commit 196ea60a734c3 ("hw/smbios: Fix
core count in type4"), add the "die" level in "-smp" as the more
general topology case.
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
---
tests/qtest/bios-tables-test.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index a35c753a3a00..8cba1d8126f2 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1024,10 +1024,12 @@ static void test_acpi_q35_tcg_core_count2(void)
.required_struct_types = base_required_struct_types,
.required_struct_types_len = ARRAY_SIZE(base_required_struct_types),
.smbios_core_count = 0xFF,
- .smbios_core_count2 = 275,
+ .smbios_core_count2 = 260,
};
- test_acpi_one("-machine smbios-entry-point-type=64 -smp 275", &data);
+ test_acpi_one("-machine smbios-entry-point-type=64 "
+ "-smp 260,dies=2,cores=130,threads=1",
+ &data);
free_test_data(&data);
}
--
2.34.1
- [PATCH 00/16] tests: Add CPU topology related smbios test cases, Zhao Liu, 2023/08/24
- [PATCH 01/16] tests: test-smp-parse: Add the test for cores/threads per socket helpers, Zhao Liu, 2023/08/24
- [PATCH 02/16] tests: bios-tables-test: Prepare the ACPI table change for type4 count test, Zhao Liu, 2023/08/24
- [PATCH 03/16] tests: bios-tables-test: Add test for smbios type4 count, Zhao Liu, 2023/08/24
- [PATCH 04/16] tests: bios-tables-test: Add ACPI table binaries for type4 count test, Zhao Liu, 2023/08/24
- [PATCH 05/16] tests: bios-tables-test: Prepare the ACPI table change for type4 core count test, Zhao Liu, 2023/08/24
- [PATCH 06/16] tests: bios-tables-test: Add test for smbios type4 core count, Zhao Liu, 2023/08/24
- [PATCH 07/16] tests: bios-tables-test: Add ACPI table binaries for type4 core count test, Zhao Liu, 2023/08/24
- [PATCH 08/16] tests: bios-tables-test: Prepare the ACPI table change for type4 core count2 test, Zhao Liu, 2023/08/24
- [PATCH 09/16] tests: bios-tables-test: Extend core count2 test to cover general topology,
Zhao Liu <=
- [PATCH 12/16] tests: bios-tables-test: Add test for smbios type4 thread count, Zhao Liu, 2023/08/24
- [PATCH 10/16] tests: bios-tables-test: Update ACPI table binaries for core count2 test, Zhao Liu, 2023/08/24
- [PATCH 11/16] tests: bios-tables-test: Prepare the ACPI table change for type4 thread count test, Zhao Liu, 2023/08/24
- [PATCH 14/16] tests: bios-tables-test: Prepare the ACPI table change for type4 thread count2 test, Zhao Liu, 2023/08/24
- [PATCH 13/16] tests: bios-tables-test: Add ACPI table binaries for type4 thread count test, Zhao Liu, 2023/08/24
- [PATCH 15/16] tests: bios-tables-test: Add test for smbios type4 thread count2, Zhao Liu, 2023/08/24
- [PATCH 16/16] tests: bios-tables-test: Add ACPI table binaries for type4 thread count2 test, Zhao Liu, 2023/08/24