xlnx-zcu102: Specify the max number of CPUs for the EP108
[qemu.git] / include / sysemu / numa.h
blob5c6df2820b4578785c64508c8df0d6e89cbf6e99
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 numa_addr_range {
14 ram_addr_t mem_start;
15 ram_addr_t mem_end;
16 QLIST_ENTRY(numa_addr_range) entry;
19 struct node_info {
20 uint64_t node_mem;
21 struct HostMemoryBackend *node_memdev;
22 bool present;
23 QLIST_HEAD(, numa_addr_range) addr; /* List to store address ranges */
24 uint8_t distance[MAX_NODES];
27 struct NumaNodeMem {
28 uint64_t node_mem;
29 uint64_t node_plugged_mem;
32 extern NodeInfo numa_info[MAX_NODES];
33 void parse_numa_opts(MachineState *ms);
34 void query_numa_node_mem(NumaNodeMem node_mem[]);
35 extern QemuOptsList qemu_numa_opts;
36 void numa_set_mem_node_id(ram_addr_t addr, uint64_t size, uint32_t node);
37 void numa_unset_mem_node_id(ram_addr_t addr, uint64_t size, uint32_t node);
38 uint32_t numa_get_node(ram_addr_t addr, Error **errp);
39 void numa_legacy_auto_assign_ram(MachineClass *mc, NodeInfo *nodes,
40 int nb_nodes, ram_addr_t size);
41 void numa_default_auto_assign_ram(MachineClass *mc, NodeInfo *nodes,
42 int nb_nodes, ram_addr_t size);
43 void numa_cpu_pre_plug(const CPUArchId *slot, DeviceState *dev, Error **errp);
44 #endif