All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v2 0/6] s390x: smp: use CPU indexes instead of addresses
@ 2022-02-04 13:08 Claudio Imbrenda
  2022-02-04 13:08 ` [kvm-unit-tests PATCH v2 1/6] lib: s390x: smp: guarantee that boot CPU has index 0 Claudio Imbrenda
                   ` (5 more replies)
  0 siblings, 6 replies; 23+ messages in thread
From: Claudio Imbrenda @ 2022-02-04 13:08 UTC (permalink / raw)
  To: kvm; +Cc: frankja, thuth, david, nrb, scgl, seiden

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

This series fixes a small bug in the SMP initialization code, adds a
guarantee that the boot CPU will always have index 0, changes the
existing smp_* functions to take indexes instead of addresses, 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.

v1->v2
* refactored the smp_* functions to accept indexes instead of addresses
* also fixed uv-host test

Claudio Imbrenda (6):
  lib: s390x: smp: guarantee that boot CPU has index 0
  lib: s390x: smp: refactor smp functions to accept indexes
  s390x: smp: use CPU indexes instead of addresses
  s390x: firq: use CPU indexes instead of addresses
  s390x: skrf: use CPU indexes instead of addresses
  s390x: uv-host: use CPU indexes instead of addresses

 lib/s390x/smp.h |  20 +++---
 lib/s390x/smp.c | 173 +++++++++++++++++++++++++++++-------------------
 s390x/firq.c    |  26 ++------
 s390x/skrf.c    |   2 +-
 s390x/smp.c     |  22 +++---
 s390x/uv-host.c |   4 +-
 6 files changed, 137 insertions(+), 110 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2022-02-15 15:11 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-04 13:08 [kvm-unit-tests PATCH v2 0/6] s390x: smp: use CPU indexes instead of addresses Claudio Imbrenda
2022-02-04 13:08 ` [kvm-unit-tests PATCH v2 1/6] lib: s390x: smp: guarantee that boot CPU has index 0 Claudio Imbrenda
2022-02-14 16:05   ` Nico Boehr
2022-02-15 10:46   ` Steffen Eiden
2022-02-04 13:08 ` [kvm-unit-tests PATCH v2 2/6] lib: s390x: smp: refactor smp functions to accept indexes Claudio Imbrenda
2022-02-14 16:05   ` Nico Boehr
2022-02-15 11:09   ` Steffen Eiden
2022-02-15 11:23     ` Claudio Imbrenda
2022-02-15 11:43       ` Steffen Eiden
2022-02-15 11:54         ` Claudio Imbrenda
2022-02-15 15:11           ` Janosch Frank
2022-02-04 13:08 ` [kvm-unit-tests PATCH v2 3/6] s390x: smp: use CPU indexes instead of addresses Claudio Imbrenda
2022-02-14 16:06   ` Nico Boehr
2022-02-15 11:15   ` Steffen Eiden
2022-02-04 13:08 ` [kvm-unit-tests PATCH v2 4/6] s390x: firq: " Claudio Imbrenda
2022-02-14 16:06   ` Nico Boehr
2022-02-15 11:23   ` Steffen Eiden
2022-02-04 13:08 ` [kvm-unit-tests PATCH v2 5/6] s390x: skrf: " Claudio Imbrenda
2022-02-14 16:06   ` Nico Boehr
2022-02-15 11:26   ` Steffen Eiden
2022-02-04 13:08 ` [kvm-unit-tests PATCH v2 6/6] s390x: uv-host: " Claudio Imbrenda
2022-02-14 16:11   ` Nico Boehr
2022-02-15 11:31   ` Steffen Eiden

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.