From: Pierre Morel <pmorel@linux.ibm.com>
To: linux-s390@vger.kernel.org
Cc: frankja@linux.ibm.com, thuth@redhat.com, kvm@vger.kernel.org,
cohuck@redhat.com, imbrenda@linux.ibm.com, david@redhat.com,
nrb@linux.ibm.com, scgl@linux.ibm.com
Subject: [kvm-unit-tests PATCH v5 0/2] S390x: CPU Topology Information
Date: Mon, 24 Oct 2022 16:20:33 +0200 [thread overview]
Message-ID: <20221024142035.22668-1-pmorel@linux.ibm.com> (raw)
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.
next reply other threads:[~2022-10-24 18:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-24 14:20 Pierre Morel [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221024142035.22668-1-pmorel@linux.ibm.com \
--to=pmorel@linux.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@redhat.com \
--cc=frankja@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=nrb@linux.ibm.com \
--cc=scgl@linux.ibm.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox