monitor: Fix tracepoint crash on JSON syntax error
[qemu/armbru.git] / include / sysemu / numa.h
blob7a0ae751aa7995d4fe5d972e74110cafe509372e
1 #ifndef SYSEMU_NUMA_H
2 #define SYSEMU_NUMA_H
4 #include "qemu/bitmap.h"
5 #include "sysemu/sysemu.h"
6 #include "sysemu/hostmem.h"
7 #include "hw/boards.h"
9 extern int nb_numa_nodes; /* Number of NUMA nodes */
10 extern bool have_numa_distance;
12 struct node_info {
13 uint64_t node_mem;
14 struct HostMemoryBackend *node_memdev;
15 bool present;
16 uint8_t distance[MAX_NODES];
19 struct NumaNodeMem {
20 uint64_t node_mem;
21 uint64_t node_plugged_mem;
24 extern NodeInfo numa_info[MAX_NODES];
25 int parse_numa(void *opaque, QemuOpts *opts, Error **errp);
26 void parse_numa_opts(MachineState *ms);
27 void numa_complete_configuration(MachineState *ms);
28 void query_numa_node_mem(NumaNodeMem node_mem[]);
29 extern QemuOptsList qemu_numa_opts;
30 void numa_legacy_auto_assign_ram(MachineClass *mc, NodeInfo *nodes,
31 int nb_nodes, ram_addr_t size);
32 void numa_default_auto_assign_ram(MachineClass *mc, NodeInfo *nodes,
33 int nb_nodes, ram_addr_t size);
34 void numa_cpu_pre_plug(const CPUArchId *slot, DeviceState *dev, Error **errp);
35 #endif