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>
This commit is contained in:
parent
821e322786
commit
d2995916ea
@ -133,7 +133,14 @@ extern uint8_t qemu_extra_params_fw[2];
|
|||||||
extern QEMUClockType rtc_clock;
|
extern QEMUClockType rtc_clock;
|
||||||
|
|
||||||
#define MAX_NODES 64
|
#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
|
#define MAX_CPUMASK_BITS 255
|
||||||
|
|
||||||
extern int nb_numa_nodes;
|
extern int nb_numa_nodes;
|
||||||
extern uint64_t node_mem[MAX_NODES];
|
extern uint64_t node_mem[MAX_NODES];
|
||||||
extern unsigned long *node_cpumask[MAX_NODES];
|
extern unsigned long *node_cpumask[MAX_NODES];
|
||||||
|
Loading…
Reference in New Issue
Block a user