From: Andrew Jones <drjones@redhat.com>
To: Shannon Zhao <zhaoshenglong@huawei.com>
Cc: qemu-arm@nongnu.org, peter.maydell@linaro.org,
peter.huangpeng@huawei.com, shannon.zhao@linaro.org,
qemu-devel@nongnu.org, david.daney@cavium.com
Subject: Re: [Qemu-devel] [PATCH v5 2/5] ARM: Virt: Set numa-node-id for CPUs
Date: Fri, 22 Apr 2016 14:34:42 +0200 [thread overview]
Message-ID: <20160422123442.3mohf2e5tl5pg24v@hawk.localdomain> (raw)
In-Reply-To: <1461219834-10416-3-git-send-email-zhaoshenglong@huawei.com>
On Thu, Apr 21, 2016 at 02:23:51PM +0800, Shannon Zhao wrote:
> From: Shannon Zhao <shannon.zhao@linaro.org>
>
> Add a numa-node-id property to specify NUMA information for CPUs.
>
> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
> ---
> hw/arm/virt.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index 814a1eb..d21e9a0 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -359,6 +359,7 @@ static void fdt_add_cpu_nodes(const VirtBoardInfo *vbi)
> {
> int cpu;
> int addr_cells = 1;
> + unsigned int i;
>
> /*
> * From Documentation/devicetree/bindings/arm/cpus.txt
> @@ -408,6 +409,12 @@ static void fdt_add_cpu_nodes(const VirtBoardInfo *vbi)
> armcpu->mp_affinity);
> }
>
> + for (i = 0; i < nb_numa_nodes; i++) {
> + if (test_bit(cpu, numa_info[i].node_cpu)) {
> + qemu_fdt_setprop_cell(vbi->fdt, nodename, "numa-node-id", i);
> + }
> + }
> +
> g_free(nodename);
> }
> }
> --
> 2.0.4
>
Reviewed-by: Andrew Jones <drjones@redhat.com>
next prev parent reply other threads:[~2016-04-22 12:34 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 6:23 [Qemu-devel] [PATCH v5 0/5] ARM: Add NUMA support for machine virt Shannon Zhao
2016-04-21 6:23 ` [Qemu-devel] [PATCH v5 1/5] ARM: Virt: Add /distance-map node for NUMA Shannon Zhao
2016-04-22 12:25 ` Andrew Jones
2016-04-23 1:17 ` Shannon Zhao
2016-04-23 7:03 ` Andrew Jones
2016-04-23 7:27 ` Shannon Zhao
2016-04-21 6:23 ` [Qemu-devel] [PATCH v5 2/5] ARM: Virt: Set numa-node-id for CPUs Shannon Zhao
2016-04-22 12:34 ` Andrew Jones [this message]
2016-04-21 6:23 ` [Qemu-devel] [PATCH v5 3/5] ARM: Add numa-node-id for /memory node Shannon Zhao
2016-04-22 12:48 ` Andrew Jones
2016-04-23 1:16 ` Shannon Zhao
2016-04-23 7:45 ` Andrew Jones
2016-04-23 8:02 ` Shannon Zhao
2016-04-21 6:23 ` [Qemu-devel] [PATCH v5 4/5] include/hw/acpi/acpi-defs: Add GICC Affinity Structure Shannon Zhao
2016-04-22 13:26 ` Andrew Jones
2016-04-21 6:23 ` [Qemu-devel] [PATCH v5 5/5] hw/arm/virt-acpi-build: Generate SRAT table Shannon Zhao
2016-04-22 13:26 ` Andrew Jones
2016-04-23 1:08 ` Shannon Zhao
2016-04-25 10:44 ` Igor Mammedov
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=20160422123442.3mohf2e5tl5pg24v@hawk.localdomain \
--to=drjones@redhat.com \
--cc=david.daney@cavium.com \
--cc=peter.huangpeng@huawei.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=shannon.zhao@linaro.org \
--cc=zhaoshenglong@huawei.com \
/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).