public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v5 0/2] S390x: CPU Topology Information
@ 2022-10-24 14:20 Pierre Morel
  2022-10-24 14:20 ` [kvm-unit-tests PATCH v5 1/2] s390x: topology: Check the Perform Topology Function Pierre Morel
  2022-10-24 14:20 ` [kvm-unit-tests PATCH v5 2/2] s390x: topology: Checking Configuration Topology Information Pierre Morel
  0 siblings, 2 replies; 3+ messages in thread
From: Pierre Morel @ 2022-10-24 14:20 UTC (permalink / raw)
  To: linux-s390; +Cc: frankja, thuth, kvm, cohuck, imbrenda, david, nrb, scgl

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

-- 
2.31.1

Changelog:

From v4:

- Simplify the tests for socket and cores only.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-24 18:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-24 14:20 [kvm-unit-tests PATCH v5 0/2] S390x: CPU Topology Information Pierre Morel
2022-10-24 14:20 ` [kvm-unit-tests PATCH v5 1/2] s390x: topology: Check the Perform Topology Function Pierre Morel
2022-10-24 14:20 ` [kvm-unit-tests PATCH v5 2/2] s390x: topology: Checking Configuration Topology Information Pierre Morel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox