diff options
author | Igor Mammedov | 2017-05-30 18:24:00 +0200 |
---|---|---|
committer | Eduardo Habkost | 2017-06-05 19:59:09 +0200 |
commit | 15f8b14228b856850df3fa5ba999ad96521f2208 (patch) | |
tree | 2ca59eabe74480c267f910e1bd1ff6cfe6e824c0 /target/arm/cpu.h | |
parent | numa: make hmp 'info numa' fetch numa nodes from qmp_query_cpus() result (diff) | |
download | qemu-15f8b14228b856850df3fa5ba999ad96521f2208.tar.gz qemu-15f8b14228b856850df3fa5ba999ad96521f2208.tar.xz qemu-15f8b14228b856850df3fa5ba999ad96521f2208.zip |
numa: move numa_node from CPUState into target specific classes
Move vcpu's associated numa_node field out of generic CPUState
into inherited classes that actually care about cpu<->numa mapping,
i.e: ARMCPU, PowerPCCPU, X86CPU.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1496161442-96665-6-git-send-email-imammedo@redhat.com>
[ehabkost: s/CPU is belonging to/CPU belongs to/ on comments]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r-- | target/arm/cpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 13da5036bc..16a1e59615 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -704,6 +704,8 @@ struct ARMCPU { ARMELChangeHook *el_change_hook; void *el_change_hook_opaque; + + int32_t node_id; /* NUMA node this CPU belongs to */ }; static inline ARMCPU *arm_env_get_cpu(CPUARMState *env) |