Skip to content

tests/unit/test-smp-parse.c: Add more CPU topology test cases

Zhao Liu qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8tests/unit/test-smp-parse.c: Use CPU number macros in invalid topology casetests/unit/test-smp-parse.c+14 -81 reply
2/8tests/unit/test-smp-parse.c: Bump max_cpus to 4096tests/unit/test-smp-parse.c+7 -72 replies
3/8tests/unit/test-smp-parse.c: Make test cases aware of the book/drawertests/unit/test-smp-parse.c+22 -31 reply
4/8tests/unit/test-smp-parse.c: Test "books" parameter in -smptests/unit/test-smp-parse.c+105 -01 reply
5/8tests/unit/test-smp-parse.c: Test "drawers" parameter in -smptests/unit/test-smp-parse.c+89 -01 reply
6/8tests/unit/test-smp-parse.c: Test "drawers" and "books" combination casetests/unit/test-smp-parse.c+103 -00 replies
7/8tests/unit/test-smp-parse.c: Test the full 7-levels topology hierarchytests/unit/test-smp-parse.c+143 -01 reply
8/8tests/unit/test-smp-parse.c: Test smp_props.has_clusterstests/unit/test-smp-parse.c+14 -61 reply

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchXiaoling SongThomas Huth
SeriesT-b
1/8R-b
2/8
3/8R-b
4/8R-b
5/8R-b
6/8
7/8A-b
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] tests/unit/test-smp-parse.c: Add more CPU topology test cases

From: Zhao Liu <[email protected]>

Hi list,

Currently, test-smp-parse lacks the following cases:
* The case to cover drawer and book parameters parsing in -smp.
* The case to cover the full topology (with total 7 levels) to ensure that the topology-related calculations are correct.
* The case to check smp_props.has_clusters of MachineClass.

Thus, add the above cases to improve test coverage.

In addition, people is trying to bump max_cpus to 4096 for PC machine [1]. Without considering other changes, it's only a matter of time before the maximum CPUs is raised. Therefore, aslo bump max_cpus to 4096 in -smp related test cases as a start.

[1]: https://lore.kernel.org/qemu-devel/[email protected]/

Regards,
Zhao

---
Zhao Liu (8):
tests/unit/test-smp-parse.c: Use CPU number macros in invalid topology
case
tests/unit/test-smp-parse.c: Bump max_cpus to 4096 tests/unit/test-smp-parse.c: Make test cases aware of the book/drawer tests/unit/test-smp-parse.c: Test "books" parameter in -smp tests/unit/test-smp-parse.c: Test "drawers" parameter in -smp tests/unit/test-smp-parse.c: Test "drawers" and "books" combination
case
tests/unit/test-smp-parse.c: Test the full 7-levels topology hierarchy tests/unit/test-smp-parse.c: Test smp_props.has_clusters

 tests/unit/test-smp-parse.c | 515 ++++++++++++++++++++++++++++++++++--
 1 file changed, 494 insertions(+), 21 deletions(-)
Signature · 1 line
2.34.1