Hi, This series is a follow-up of the reworked pSeries NUMA code that is already merged upstream. It contains some of the patches that were presented in the first version of this work [1], some of them changed based on the reviews made back there.
With this series, we're able to take user input into consideration when setting up the NUMA topology of the guest. It is still an approximation, but at least user input is not completely ignored. The changes will only be effective with pseries-5.2 and newer machines, and if more than one NUMA node is declared by the user. The idea is that we don't want to tamper with legacy guest behavior. Patch 6 has examples of how we are approximating NUMA distance via user input. The series was rebased using David's ppc-for-5.2 at 4cca31df828. Changes carried over from [1]: - patch 1 (former 4): same patch, added David's r-b - patch 2 (former 2): the check for asymetrical NUMA was moved to spapr code as requested in the review - patch 4 is a merge of former patches 5 and 6 - patch 5 (former 9): reworked - patch 6 (former 10): same patch Patch 3 is new in the series. [1] https://lists.gnu.org/archive/html/qemu-devel/2020-08/msg03169.html Daniel Henrique Barboza (6): spapr: add spapr_machine_using_legacy_numa() helper spapr_numa: forbid asymmetrical NUMA setups spapr_numa: translate regular NUMA distance to PAPR distance spapr_numa: change reference-points and maxdomain settings spapr_numa: consider user input when defining associativity specs/ppc-spapr-numa: update with new NUMA support docs/specs/ppc-spapr-numa.rst | 213 ++++++++++++++++++++++++++++++++++ hw/ppc/spapr.c | 12 ++ hw/ppc/spapr_numa.c | 184 +++++++++++++++++++++++++++-- include/hw/ppc/spapr.h | 2 + 4 files changed, 402 insertions(+), 9 deletions(-) -- 2.26.2