]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
numa: Keep track of NUMA nodes present on the command-line
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 26 Jun 2014 21:33:18 +0000 (18:33 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 29 Jun 2014 15:59:41 +0000 (18:59 +0300)
commit1af878e0497a885b6cbdd3a6d91d399f4851d99c
tree2388d27edd4f4d3ad142b2bf6aafb42a997e038a
parent2f5732e9648fcddc8759a8fd25c0b41a38352be6
numa: Keep track of NUMA nodes present on the command-line

Based on "enable sparse node numbering" patch from Nishanth Aravamudan,
but without the code to actually support sparse node IDs. This just adds
the code to keep track of present/non-present nodes on the command-line,
without changing any behavior.

Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
[Rename max_numa_node to max_numa_nodeid -Eduardo]
[Initialize max_numa_nodeid to 0 -Eduardo]
[Use MAX() macro when setting max_numa_nodeid -Eduardo]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Hu Tao <hutao@cn.fujitsu.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
include/sysemu/sysemu.h
numa.c
vl.c