aboutsummaryrefslogtreecommitdiff
path: root/hw/core
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2020-09-11 04:44:10 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-09-30 19:09:20 +0200
commit270b33cc1c40ce2eff1abdf67b04fc008167b525 (patch)
treec2857c6b84c25b6ccbfd9d80b9020776f76b4186 /hw/core
parentc01f250cb86cde926dbee4337317ccd58261fa1b (diff)
downloadqemu-270b33cc1c40ce2eff1abdf67b04fc008167b525.zip
qemu-270b33cc1c40ce2eff1abdf67b04fc008167b525.tar.gz
qemu-270b33cc1c40ce2eff1abdf67b04fc008167b525.tar.bz2
numa: remove fixup numa_state->num_nodes to MAX_NODES
current code permits only nodeids in [0..MAX_NODES) range due to nodeid check in parse_numa_node() if (nodenr >= MAX_NODES) { error_setg(errp, "Max number of NUMA nodes reached: %" so subj fixup is not reachable, drop it. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20200911084410.788171-4-imammedo@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/numa.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/core/numa.c b/hw/core/numa.c
index 706c1e8..7d5d413 100644
--- a/hw/core/numa.c
+++ b/hw/core/numa.c
@@ -677,10 +677,6 @@ void numa_complete_configuration(MachineState *ms)
if (ms->numa_state->num_nodes > 0) {
uint64_t numa_total;
- if (ms->numa_state->num_nodes > MAX_NODES) {
- ms->numa_state->num_nodes = MAX_NODES;
- }
-
numa_total = 0;
for (i = 0; i < ms->numa_state->num_nodes; i++) {
numa_total += numa_info[i].node_mem;