summaryrefslogtreecommitdiffstats
path: root/include/sysemu
diff options
context:
space:
mode:
authorEduardo Habkost2014-03-18 20:29:23 +0100
committerMichael S. Tsirkin2014-03-19 12:24:29 +0100
commitd2995916ea262bca40788f275c7f53f1c0a0b606 (patch)
tree9fa3b2867769157f515b94a18e4ae481b3af3663 /include/sysemu
parentacpi: fix endian-ness for table ids (diff)
downloadqemu-d2995916ea262bca40788f275c7f53f1c0a0b606.tar.gz
qemu-d2995916ea262bca40788f275c7f53f1c0a0b606.tar.xz
qemu-d2995916ea262bca40788f275c7f53f1c0a0b606.zip
sysemu.h: Document what MAX_CPUMASK_BITS really limits
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>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/sysemu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index b90df9ada1..90f192a074 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -133,7 +133,14 @@ extern uint8_t qemu_extra_params_fw[2];
extern QEMUClockType rtc_clock;
#define MAX_NODES 64
+
+/* The following shall be true for all CPUs:
+ * cpu->cpu_index < max_cpus <= MAX_CPUMASK_BITS
+ *
+ * Note that cpu->get_arch_id() may be larger than MAX_CPUMASK_BITS.
+ */
#define MAX_CPUMASK_BITS 255
+
extern int nb_numa_nodes;
extern uint64_t node_mem[MAX_NODES];
extern unsigned long *node_cpumask[MAX_NODES];