acpi-build: remove dependency from ram_addr.h
[qemu/kevin.git] / include / sysemu / numa.h
blob6523b4d7f961447289eb265760e256fbf47b82df
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"
9 #include "hw/boards.h"
11 extern int nb_numa_nodes; /* Number of NUMA nodes */
13 typedef struct node_info {
14 uint64_t node_mem;
15 DECLARE_BITMAP(node_cpu, MAX_CPUMASK_BITS);
16 struct HostMemoryBackend *node_memdev;
17 bool present;
18 } NodeInfo;
19 extern NodeInfo numa_info[MAX_NODES];
20 void parse_numa_opts(MachineClass *mc);
21 void numa_post_machine_init(void);
22 void query_numa_node_mem(uint64_t node_mem[]);
23 extern QemuOptsList qemu_numa_opts;
25 #endif