s390x/tcg: simplify lookup of flic
[qemu/ar7.git] / include / sysemu / numa.h
blobb3545215f694865371ce29ab2bb65ff9429ff122
1 #ifndef SYSEMU_NUMA_H
2 #define SYSEMU_NUMA_H
4 #include "qemu/bitmap.h"
5 #include "qemu/option.h"
6 #include "sysemu/sysemu.h"
7 #include "sysemu/hostmem.h"
8 #include "hw/boards.h"
10 extern int nb_numa_nodes; /* Number of NUMA nodes */
11 extern bool have_numa_distance;
13 struct node_info {
14 uint64_t node_mem;
15 struct HostMemoryBackend *node_memdev;
16 bool present;
17 uint8_t distance[MAX_NODES];
20 struct NumaNodeMem {
21 uint64_t node_mem;
22 uint64_t node_plugged_mem;
25 extern NodeInfo numa_info[MAX_NODES];
26 void parse_numa_opts(MachineState *ms);
27 void query_numa_node_mem(NumaNodeMem node_mem[]);
28 extern QemuOptsList qemu_numa_opts;
29 void numa_legacy_auto_assign_ram(MachineClass *mc, NodeInfo *nodes,
30 int nb_nodes, ram_addr_t size);
31 void numa_default_auto_assign_ram(MachineClass *mc, NodeInfo *nodes,
32 int nb_nodes, ram_addr_t size);
33 void numa_cpu_pre_plug(const CPUArchId *slot, DeviceState *dev, Error **errp);
34 #endif