summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorIgor Mammedov2017-05-10 13:29:48 +0200
committerEduardo Habkost2017-05-11 21:08:49 +0200
commitbd4c1bfe3e2736e5bb3e5238ede718843b175cc6 (patch)
tree447e6492b3a20a79e0b0d3fe07c5988c77af2392 /target
parentpc: add node-id property to CPU (diff)
downloadqemu-bd4c1bfe3e2736e5bb3e5238ede718843b175cc6.tar.gz
qemu-bd4c1bfe3e2736e5bb3e5238ede718843b175cc6.tar.xz
qemu-bd4c1bfe3e2736e5bb3e5238ede718843b175cc6.zip
virt-arm: add node-id property to CPU
it will allow switching from cpu_index to property based numa mapping in follow up patches. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Message-Id: <1494415802-227633-5-git-send-email-imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target')
-rw-r--r--target/arm/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/arm/cpu.c b/target/arm/cpu.c
index ee1406da12..c185eb19ac 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -1573,6 +1573,7 @@ static Property arm_cpu_properties[] = {
DEFINE_PROP_UINT32("midr", ARMCPU, midr, 0),
DEFINE_PROP_UINT64("mp-affinity", ARMCPU,
mp_affinity, ARM64_AFFINITY_INVALID),
+ DEFINE_PROP_INT32("node-id", CPUState, numa_node, CPU_UNSET_NUMA_NODE_ID),
DEFINE_PROP_END_OF_LIST()
};