mbox series

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

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

Message

Pierre Morel Oct. 24, 2022, 2:20 p.m. UTC
Hi,

new version of the series with corrections.

When facility 11 is available inside the S390x architecture, 2 new
instructions are available: PTF and STSI with function code 15.

Let's check their availability in QEMU/KVM and their coherence
with the CPU topology provided to the QEMU -smp parameter and as
argument for the test.

To run these tests successfully you will Linux 6.0 and the following
QEMU patches (or newer):

  https://lore.kernel.org/all/20221012162107.91734-1-pmorel@linux.ibm.com/#r


To start the test just do:

# ./run_tests.sh topology

or

# ./s390x-run s390x/topology.elf \
	-smp 5,sockets=4,cores=4,maxcpus=16 \
	-append "-mnest 2 -sockets 4 -cores 4"


Of course the declaration of the number of socket and core must be
coherent in -smp and -append arguments.
The "mnest" argument represent the expected nesting level it will be
2 until books and drawer are added to the topology.

Regards,
Pierre

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

 lib/s390x/stsi.h    |  44 ++++++
 s390x/Makefile      |   1 +
 s390x/topology.c    | 366 ++++++++++++++++++++++++++++++++++++++++++++
 s390x/unittests.cfg |   4 +
 4 files changed, 415 insertions(+)
 create mode 100644 s390x/topology.c