summaryrefslogtreecommitdiffstats
path: root/include/sysemu
diff options
context:
space:
mode:
authorTao Xu2019-08-09 08:57:23 +0200
committerEduardo Habkost2019-09-03 16:26:55 +0200
commit118154b7674b85827f272332efe86fc58cb76249 (patch)
tree5bdab4b850c1ebca8b88c8bab9673230146c9b83 /include/sysemu
parentnuma: move numa global variable nb_numa_nodes into MachineState (diff)
downloadqemu-118154b7674b85827f272332efe86fc58cb76249.tar.gz
qemu-118154b7674b85827f272332efe86fc58cb76249.tar.xz
qemu-118154b7674b85827f272332efe86fc58cb76249.zip
numa: move numa global variable have_numa_distance into MachineState
Move existing numa global have_numa_distance into NumaState. Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Liu Jingqi <jingqi.liu@intel.com> Suggested-by: Igor Mammedov <imammedo@redhat.com> Suggested-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Tao Xu <tao3.xu@intel.com> Message-Id: <20190809065731.9097-4-tao3.xu@intel.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/numa.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sysemu/numa.h b/include/sysemu/numa.h
index 1786e861d0..bfe04b514c 100644
--- a/include/sysemu/numa.h
+++ b/include/sysemu/numa.h
@@ -14,8 +14,6 @@ struct CPUArchId;
#define NUMA_DISTANCE_MAX 254
#define NUMA_DISTANCE_UNREACHABLE 255
-extern bool have_numa_distance;
-
struct NodeInfo {
uint64_t node_mem;
struct HostMemoryBackend *node_memdev;
@@ -34,6 +32,8 @@ struct NumaState {
/* Number of NUMA nodes */
int num_nodes;
+ /* Allow setting NUMA distance for different NUMA nodes */
+ bool have_numa_distance;
};
typedef struct NumaState NumaState;