mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
aa57020774
commit
118154b767
6 changed files with 8 additions and 9 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue