Skip to content

s390x: smp: avoid hardcoded CPU addresses

Claudio Imbrenda kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5lib: s390x: smp: add functions to work with CPU indexeslib/s390x/smp.c lib/s390x/smp.h+14 -03 replies
2/5lib: s390x: smp: guarantee that boot CPU has index 0lib/s390x/smp.c+8 -82 replies
3/5s390x: smp: avoid hardcoded CPU addressess390x/smp.c+44 -390 replies
4/5s390x: firq: avoid hardcoded CPU addressess390x/firq.c+8 -90 replies
5/5s390x: skrf: avoid hardcoded CPU addressess390x/skrf.c+5 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [kvm-unit-tests PATCH v1 0/5] s390x: smp: avoid hardcoded CPU addresses

On s390x there are no guarantees about the CPU addresses, except that they shall be unique. This means that in some environments, it's possible that there is no match between the CPU address and its position (index) in the list of available CPUs returned by the system.

This series fixes a small bug in the SMP initialization code, adds a guarantee that the boot CPU will always have index 0, and introduces some functions to allow tests to use CPU indexes instead of using hardcoded CPU addresses. This will allow the tests to run successfully in more environments (e.g. z/VM, LPAR).

Some existing tests are adapted to take advantage of the new functionalities.

Claudio Imbrenda (5):
lib: s390x: smp: add functions to work with CPU indexes
lib: s390x: smp: guarantee that boot CPU has index 0
s390x: smp: avoid hardcoded CPU addresses
s390x: firq: avoid hardcoded CPU addresses
s390x: skrf: avoid hardcoded CPU addresses

 lib/s390x/smp.h |  2 ++
 lib/s390x/smp.c | 28 ++++++++++++-----
 s390x/firq.c    | 17 +++++-----
 s390x/skrf.c    |  8 +++--
 s390x/smp.c     | 83 ++++++++++++++++++++++++++-----------------------
 5 files changed, 79 insertions(+), 59 deletions(-)
Signature · 1 line
2.34.1