From: Daniel Henrique Barboza <danielhb413@gmail.com>
To: qemu-devel@nongnu.org
Cc: Daniel Henrique Barboza <danielhb413@gmail.com>,
qemu-ppc@nongnu.org, groug@kaod.org, david@gibson.dropbear.id.au
Subject: [PATCH v7 0/7] pSeries FORM2 affinity support
Date: Wed, 15 Sep 2021 22:29:57 -0300 [thread overview]
Message-ID: <20210916013004.272059-1-danielhb413@gmail.com> (raw)
Hi,
In this version the biggest change is the end of the numa_assoc_array
struct in the machine state. The write_dt() functions are now retrieving
the current NUMA associativity array by checking CAS first.
This change allowed for several simplifications, e.g. we don't need
a reset() function to be called after CAS or in spapr_post_load().
Arrays are now statically allocated.
I also catched a last minute bug during my tests. See patch 7 for more
info.
Changes from v6:
- patch 1:
* added Greg's r-b
- patch 2:
* added the missing NUMA nodes number check
* added Greg's r-b
- patch 3 (former patch 4):
* no changes.
- former patch 3 (associativity_reset()): dropped
- patch 4 (new):
* added get_associativity()
* do not allocate FORM1_assoc_array in the heap
- patch 5:
* fixed typo
* added new check function to be called in CAS
- patch 6:
* do not allocate FORM2_assoc_array in the heap
- patch 7 (new):
* FORM2 fixes to handle the implicit added QEMU NUMA node when there's
no NUMA node added by the user.
- v6 link: https://lists.gnu.org/archive/html/qemu-devel/2021-09/msg02892.html
Daniel Henrique Barboza (7):
spapr_numa.c: split FORM1 code into helpers
spapr_numa.c: scrap 'legacy_numa' concept
spapr_numa.c: parametrize FORM1 macros
spapr_numa.c: rename numa_assoc_array to FORM1_assoc_array
spapr: move FORM1 verifications to post CAS
spapr_numa.c: FORM2 NUMA affinity support
spapr_numa.c: handle auto NUMA node with no distance info
hw/ppc/spapr.c | 41 +---
hw/ppc/spapr_hcall.c | 7 +
hw/ppc/spapr_numa.c | 380 ++++++++++++++++++++++++++++++------
include/hw/ppc/spapr.h | 35 ++--
include/hw/ppc/spapr_numa.h | 1 +
include/hw/ppc/spapr_ovec.h | 1 +
6 files changed, 354 insertions(+), 111 deletions(-)
--
2.31.1
next reply other threads:[~2021-09-16 1:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-16 1:29 Daniel Henrique Barboza [this message]
2021-09-16 1:29 ` [PATCH v7 1/7] spapr_numa.c: split FORM1 code into helpers Daniel Henrique Barboza
2021-09-16 1:29 ` [PATCH v7 2/7] spapr_numa.c: scrap 'legacy_numa' concept Daniel Henrique Barboza
2021-09-16 1:30 ` [PATCH v7 3/7] spapr_numa.c: parametrize FORM1 macros Daniel Henrique Barboza
2021-09-16 1:30 ` [PATCH v7 4/7] spapr_numa.c: rename numa_assoc_array to FORM1_assoc_array Daniel Henrique Barboza
2021-09-16 1:30 ` [PATCH v7 5/7] spapr: move FORM1 verifications to post CAS Daniel Henrique Barboza
2021-09-16 1:30 ` [PATCH v7 6/7] spapr_numa.c: FORM2 NUMA affinity support Daniel Henrique Barboza
2021-09-16 1:30 ` [PATCH v7 7/7] spapr_numa.c: handle auto NUMA node with no distance info Daniel Henrique Barboza
2021-09-17 8:25 ` Igor Mammedov
2021-09-17 21:18 ` Daniel Henrique Barboza
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210916013004.272059-1-danielhb413@gmail.com \
--to=danielhb413@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=groug@kaod.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.