On Fri, 2023-06-30 at 11:17 +0200, Pierre Morel wrote: > Introduction of the s390x cpu topology core functions and > basic tests. > > We test the corelation between the command line and corRelation > the QMP results in query-cpus-fast for various CPU topology. > > Signed-off-by: Pierre Morel <pmorel@xxxxxxxxxxxxx> Reviewed-by: Nina Schoetterl-Glausch <nsg@xxxxxxxxxxxxx> > --- [...] > diff --git a/tests/avocado/s390_topology.py > b/tests/avocado/s390_topology.py > new file mode 100644 > index 0000000000..1758ec1f13 > --- /dev/null > +++ b/tests/avocado/s390_topology.py > @@ -0,0 +1,196 @@ [...] > +class S390CPUTopology(QemuSystemTest): > + """ > + S390x CPU topology consist of 4 topology layers, from bottom to consistS > top, > + the cores, sockets, books and drawers and 2 modifiers > attributes, > + the entitlement and the dedication. > + See: docs/system/s390x/cpu-topology.rst. > + > + S390x CPU topology is setup in different ways: > + - implicitely from the '-smp' argument by completing each > topology > + level one after the other begining with drawer 0, book 0 and > socket 0. > + - explicitely from the '-device' argument on the QEMU command > line > + - explicitely by hotplug of a new CPU using QMP or HMP > + - it is modified by using QMP 'set-cpu-topology' > + > + The S390x modifier attribute entitlement depends on the machine > + polarization, which can be horizontal or vertical. > + The polarization is changed on a request from the guest. > + """ [...]