qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
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 v5 0/3] pseries NUMA distance rework
Date: Fri,  4 Sep 2020 10:56:28 -0300	[thread overview]
Message-ID: <20200904135631.605094-1-danielhb413@gmail.com> (raw)

changes from v4:
- patch 01 - no changes from v4
- patch 02:
    * fixed the size in memcpy
    * created a new macro to store the size of the vcpu
associativity array, VCPU_ASSOC_SIZE
    * simplified the logic using the new macro, dropping
the size argument from the helper
- patch 03:
    * added a comment in the loop where R4-R9 is set

The code turned out way cleaner after adding the the macro
Greg suggested. Patches were rebased on top of David's
ppc-for-5.2. 

Also, something that I forgot to mention: this series has
been tested with a guest with 4 NVlink GPUs and hotplug
memory enabled, and I'm comparing the FDTs created with
and without the series using dumpdtb and doing lsprop
manually. The idea is that, after all this code, we're still
in the same place as far as the guest can see. Guest
visible changes will be coming up after this.

Daniel Henrique Barboza (3):
  spapr: move h_home_node_associativity to spapr_numa.c
  spapr_numa: create a vcpu associativity helper
  spapr_numa: use spapr_numa_get_vcpu_assoc() in home_node hcall

 hw/ppc/spapr_hcall.c   |  40 ----------------
 hw/ppc/spapr_numa.c    | 103 +++++++++++++++++++++++++++++++++++------
 include/hw/ppc/spapr.h |   7 ++-
 3 files changed, 96 insertions(+), 54 deletions(-)

-- 
2.26.2



             reply	other threads:[~2020-09-04 13:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-04 13:56 Daniel Henrique Barboza [this message]
2020-09-04 13:56 ` [PATCH v5 1/3] spapr: move h_home_node_associativity to spapr_numa.c Daniel Henrique Barboza
2020-09-04 14:42   ` Greg Kurz
2020-09-04 13:56 ` [PATCH v5 2/3] spapr_numa: create a vcpu associativity helper Daniel Henrique Barboza
2020-09-04 14:35   ` Greg Kurz
2020-09-04 14:44     ` Daniel Henrique Barboza
2020-09-04 13:56 ` [PATCH v5 3/3] spapr_numa: use spapr_numa_get_vcpu_assoc() in home_node hcall Daniel Henrique Barboza
2020-09-04 14:41   ` Greg Kurz

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=20200904135631.605094-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).