target/s390x/cpu topology: Fix ordering and creation of TLEs
commit3e19fbc0c51a62d0c021e1ae768da0df64855927
authorNina Schoetterl-Glausch <nsg@linux.ibm.com>
Fri, 27 Oct 2023 16:36:37 +0000 (27 18:36 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 7 Nov 2023 18:27:08 +0000 (7 19:27 +0100)
tree09150b2818a5274f5d8a017d6a75d616a4193bf1
parentd7e61d6b39cd3d644bc33bcb517d24fca479704c
target/s390x/cpu topology: Fix ordering and creation of TLEs

In case of horizontal polarization entitlement has no effect on
ordering.
Moreover, since the comparison is used to insert CPUs at the correct
position in the TLE list, this affects the creation of TLEs and now
correctly collapses horizontally polarized CPUs into one TLE.

Fixes: f4f54b582f ("target/s390x/cpu topology: handle STSI(15) and build the SYSIB")
Signed-off-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Message-ID: <20231027163637.3060537-1-nsg@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/kvm/stsi-topology.c