|
@@ -2,13 +2,18 @@
|
|
#define SYSEMU_NUMA_H
|
|
#define SYSEMU_NUMA_H
|
|
|
|
|
|
#include "qemu/bitmap.h"
|
|
#include "qemu/bitmap.h"
|
|
-#include "sysemu/sysemu.h"
|
|
|
|
-#include "sysemu/hostmem.h"
|
|
|
|
#include "qapi/qapi-types-machine.h"
|
|
#include "qapi/qapi-types-machine.h"
|
|
#include "exec/cpu-common.h"
|
|
#include "exec/cpu-common.h"
|
|
|
|
|
|
struct CPUArchId;
|
|
struct CPUArchId;
|
|
|
|
|
|
|
|
+#define MAX_NODES 128
|
|
|
|
+#define NUMA_NODE_UNASSIGNED MAX_NODES
|
|
|
|
+#define NUMA_DISTANCE_MIN 10
|
|
|
|
+#define NUMA_DISTANCE_DEFAULT 20
|
|
|
|
+#define NUMA_DISTANCE_MAX 254
|
|
|
|
+#define NUMA_DISTANCE_UNREACHABLE 255
|
|
|
|
+
|
|
extern int nb_numa_nodes; /* Number of NUMA nodes */
|
|
extern int nb_numa_nodes; /* Number of NUMA nodes */
|
|
extern bool have_numa_distance;
|
|
extern bool have_numa_distance;
|
|
|
|
|