Hi, new version of the kvm-unit-test s390x CPU topology series. 1. what is done --------------- - First part is checking PTF errors, for KVM and LPAR - Second part is checking PTF polarization change and STSI with the cpu topology including drawers and books. This tests are run for KVM only. To run these tests under KVM successfully you need Linux 6.0 and the QEMU patches you find at: https://lists.gnu.org/archive/html/qemu-devel/2023-02/msg00081.html To start the test in KVM just do: # ./run_tests.sh topology or # ./s390x-run s390x/topology.elf \ -smp 5,drawers=3,books=3,sockets=4,cores=4,maxcpus=144 \ -append '-drawers 3 -books 3 -sockets 4 -cores 4' Of course the declaration of the number of socket and core must be coherent in -smp and -append arguments. To start the tests in LPAR you do not need any argument. Regards, Pierre Pierre Morel (2): s390x: topology: Check the Perform Topology Function s390x: topology: Checking Configuration Topology Information lib/s390x/sclp.h | 3 +- lib/s390x/stsi.h | 44 +++++ s390x/Makefile | 1 + s390x/topology.c | 399 ++++++++++++++++++++++++++++++++++++++++++++ s390x/unittests.cfg | 4 + 5 files changed, 450 insertions(+), 1 deletion(-) create mode 100644 s390x/topology.c -- 2.31.1 Changelog: >From v5: - added drawers and books - mnest parameter is not needed anymore, replaced by the use of sclp. - Added several tests for polarity change and reset for PTF >From v4: - Simplify the tests for socket and cores only.