5 #include "qemu/bitmap.h"
6 #include "qemu/option.h"
7 #include "sysemu/sysemu.h"
8 #include "sysemu/hostmem.h"
11 extern int nb_numa_nodes
; /* Number of NUMA nodes */
13 struct numa_addr_range
{
16 QLIST_ENTRY(numa_addr_range
) entry
;
19 typedef struct node_info
{
21 DECLARE_BITMAP(node_cpu
, MAX_CPUMASK_BITS
);
22 struct HostMemoryBackend
*node_memdev
;
24 QLIST_HEAD(, numa_addr_range
) addr
; /* List to store address ranges */
27 extern NodeInfo numa_info
[MAX_NODES
];
28 void parse_numa_opts(MachineClass
*mc
);
29 void numa_post_machine_init(void);
30 void query_numa_node_mem(uint64_t node_mem
[]);
31 extern QemuOptsList qemu_numa_opts
;
32 void numa_set_mem_node_id(ram_addr_t addr
, uint64_t size
, uint32_t node
);
33 void numa_unset_mem_node_id(ram_addr_t addr
, uint64_t size
, uint32_t node
);
34 uint32_t numa_get_node(ram_addr_t addr
, Error
**errp
);