mirror of
https://github.com/qemu/qemu.git
synced 2025-01-26 15:40:11 +08:00
1c1e673278
Renaming set_numa_nodes() and numa_init_func() to parse_numa_opts() and parse_numa() makes the purpose of those functions clearer. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
25 lines
582 B
C
25 lines
582 B
C
#ifndef SYSEMU_NUMA_H
|
|
#define SYSEMU_NUMA_H
|
|
|
|
#include <stdint.h>
|
|
#include "qemu/bitmap.h"
|
|
#include "qemu/option.h"
|
|
#include "sysemu/sysemu.h"
|
|
#include "sysemu/hostmem.h"
|
|
|
|
extern int nb_numa_nodes; /* Number of NUMA nodes */
|
|
|
|
typedef struct node_info {
|
|
uint64_t node_mem;
|
|
DECLARE_BITMAP(node_cpu, MAX_CPUMASK_BITS);
|
|
struct HostMemoryBackend *node_memdev;
|
|
bool present;
|
|
} NodeInfo;
|
|
extern NodeInfo numa_info[MAX_NODES];
|
|
void parse_numa_opts(void);
|
|
void set_numa_modes(void);
|
|
void query_numa_node_mem(uint64_t node_mem[]);
|
|
extern QemuOptsList qemu_numa_opts;
|
|
|
|
#endif
|