numa: Make max_numa_nodeid static
[qemu/kevin.git] / include / sysemu / numa.h
blobeae881e453bef555b59ecf7b9b4f53fd250f875b
1 #ifndef SYSEMU_NUMA_H
2 #define SYSEMU_NUMA_H
4 #include <stdint.h>
5 #include "qemu/bitmap.h"
6 #include "qemu/option.h"
7 #include "sysemu/sysemu.h"
8 #include "sysemu/hostmem.h"
10 extern int nb_numa_nodes; /* Number of NUMA nodes */
12 typedef struct node_info {
13 uint64_t node_mem;
14 DECLARE_BITMAP(node_cpu, MAX_CPUMASK_BITS);
15 struct HostMemoryBackend *node_memdev;
16 bool present;
17 } NodeInfo;
18 extern NodeInfo numa_info[MAX_NODES];
19 void set_numa_nodes(void);
20 void set_numa_modes(void);
21 void query_numa_node_mem(uint64_t node_mem[]);
22 extern QemuOptsList qemu_numa_opts;
23 int numa_init_func(QemuOpts *opts, void *opaque);
25 #endif