* [Qemu-devel] [PULL 0/1] NUMA queue, 2015-10-06
@ 2015-10-06 19:54 Eduardo Habkost
2015-10-06 19:54 ` [Qemu-devel] [PULL 1/1] pc-dimm: Fail realization for invalid nodes in non-NUMA config Eduardo Habkost
2015-10-08 11:33 ` [Qemu-devel] [PULL 0/1] NUMA queue, 2015-10-06 Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Eduardo Habkost @ 2015-10-06 19:54 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-devel
The following changes since commit 5fdb4671b08e0d1631447e81348b2b50a6b85bf7:
Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging (2015-10-06 13:42:33 +0100)
are available in the git repository at:
git://github.com/ehabkost/qemu.git tags/numa-pull-request
for you to fetch changes up to 32532f215c49f005aaef942adfae34cbcc5fa678:
pc-dimm: Fail realization for invalid nodes in non-NUMA config (2015-10-06 16:51:08 -0300)
----------------------------------------------------------------
NUMA queue, 2015-10-06
----------------------------------------------------------------
Bharata B Rao (1):
pc-dimm: Fail realization for invalid nodes in non-NUMA config
hw/mem/pc-dimm.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--
2.1.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PULL 1/1] pc-dimm: Fail realization for invalid nodes in non-NUMA config
2015-10-06 19:54 [Qemu-devel] [PULL 0/1] NUMA queue, 2015-10-06 Eduardo Habkost
@ 2015-10-06 19:54 ` Eduardo Habkost
2015-10-08 11:33 ` [Qemu-devel] [PULL 0/1] NUMA queue, 2015-10-06 Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Eduardo Habkost @ 2015-10-06 19:54 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-devel, Bharata B Rao
From: Bharata B Rao <bharata@linux.vnet.ibm.com>
pc_dimm_realize() validates the NUMA node to which memory hotplug is
being performed only in case of NUMA configuration. Include a check to
fail for invalid nodes in case of non-NUMA configuration too.
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
hw/mem/pc-dimm.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c
index 6cc6ac3..506fe0d 100644
--- a/hw/mem/pc-dimm.c
+++ b/hw/mem/pc-dimm.c
@@ -417,10 +417,11 @@ static void pc_dimm_realize(DeviceState *dev, Error **errp)
error_setg(errp, "'" PC_DIMM_MEMDEV_PROP "' property is not set");
return;
}
- if ((nb_numa_nodes > 0) && (dimm->node >= nb_numa_nodes)) {
+ if (((nb_numa_nodes > 0) && (dimm->node >= nb_numa_nodes)) ||
+ (!nb_numa_nodes && dimm->node)) {
error_setg(errp, "'DIMM property " PC_DIMM_NODE_PROP " has value %"
PRIu32 "' which exceeds the number of numa nodes: %d",
- dimm->node, nb_numa_nodes);
+ dimm->node, nb_numa_nodes ? nb_numa_nodes : 1);
return;
}
}
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL 0/1] NUMA queue, 2015-10-06
2015-10-06 19:54 [Qemu-devel] [PULL 0/1] NUMA queue, 2015-10-06 Eduardo Habkost
2015-10-06 19:54 ` [Qemu-devel] [PULL 1/1] pc-dimm: Fail realization for invalid nodes in non-NUMA config Eduardo Habkost
@ 2015-10-08 11:33 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2015-10-08 11:33 UTC (permalink / raw)
To: Eduardo Habkost; +Cc: QEMU Developers
On 6 October 2015 at 20:54, Eduardo Habkost <ehabkost@redhat.com> wrote:
> The following changes since commit 5fdb4671b08e0d1631447e81348b2b50a6b85bf7:
>
> Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging (2015-10-06 13:42:33 +0100)
>
> are available in the git repository at:
>
> git://github.com/ehabkost/qemu.git tags/numa-pull-request
>
> for you to fetch changes up to 32532f215c49f005aaef942adfae34cbcc5fa678:
>
> pc-dimm: Fail realization for invalid nodes in non-NUMA config (2015-10-06 16:51:08 -0300)
>
> ----------------------------------------------------------------
> NUMA queue, 2015-10-06
>
> ----------------------------------------------------------------
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-08 11:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-06 19:54 [Qemu-devel] [PULL 0/1] NUMA queue, 2015-10-06 Eduardo Habkost
2015-10-06 19:54 ` [Qemu-devel] [PULL 1/1] pc-dimm: Fail realization for invalid nodes in non-NUMA config Eduardo Habkost
2015-10-08 11:33 ` [Qemu-devel] [PULL 0/1] NUMA queue, 2015-10-06 Peter Maydell
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).