mbox series

[kvm-unit-tests,v10,0/2] S390x: CPU Topology Information

Message ID 20230627082155.6375-1-pmorel@linux.ibm.com (mailing list archive)
Headers show
Series S390x: CPU Topology Information | expand

Message

Pierre Morel June 27, 2023, 8:21 a.m. UTC
Hi,

new version of the kvm-unit-test s390x CPU topology series.

0. what is new in this new spin
-------------------------------

- the configuration tested in unittests.cfg is compatible with current
  QEMU. A later patch will be needed to use full topology when QEMU
  patches are mainline.
- one of the tested configuration using 248 processors will failed
  until SCLP bug is corrected
- use of -cpu max instead of z14

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
or newer.

Note that Fedora-35 already has the CPU Topology backport for Linux.

To start the test in KVM just do:

# ./run_tests.sh topology
for the topology ptf tests or for the topology stsi tests
# ./run_tests.sh topology-2

or something like:

# ./s390x-run s390x/topology.elf \
	-cpu max,ctop=on \
	-smp 5,sockets=4,cores=4,maxcpus=16 \
	-append '-sockets 4 -cores 4'

Of course the declaration of the number of drawers, books, socket and
core must be coherent between -smp and -append arguments.

Regards,
Pierre

Pierre Morel (2):
  s390x: topology: Check the Perform Topology Function
  s390x: topology: Checking Configuration Topology Information

 lib/s390x/sclp.c    |   6 +
 lib/s390x/sclp.h    |   4 +-
 lib/s390x/stsi.h    |  36 ++++
 s390x/Makefile      |   1 +
 s390x/topology.c    | 516 ++++++++++++++++++++++++++++++++++++++++++++
 s390x/unittests.cfg |   7 +
 6 files changed, 569 insertions(+), 1 deletion(-)
 create mode 100644 s390x/topology.c

Comments

Nico Boehr June 30, 2023, 12:29 p.m. UTC | #1
Quoting Pierre Morel (2023-06-27 10:21:53)
> Hi,
> 
> new version of the kvm-unit-test s390x CPU topology series.

This is now on our internal CI, so we can at least see that it doesn't break anything when the topology is not yet there :)