diff options
author | Igor Mammedov <imammedo@redhat.com> | 2017-05-03 14:56:57 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2017-05-11 16:08:48 -0300 |
commit | 17d3d0e2d9fc70631de3116eba33e3b2a63887eb (patch) | |
tree | 6d770b8e5943125e1ff61b6e4283525c4d7eecc1 /qga/installer | |
parent | 46de5913b6779b5cf656f62f945409be00f45b94 (diff) | |
download | qemu-17d3d0e2d9fc70631de3116eba33e3b2a63887eb.zip qemu-17d3d0e2d9fc70631de3116eba33e3b2a63887eb.tar.gz qemu-17d3d0e2d9fc70631de3116eba33e3b2a63887eb.tar.bz2 |
hw/arm/virt: use machine->possible_cpus for storing possible topology info
for now precalculate and store mp_afinity in possible_cpus
as ARM cpus don't have socket/core/thread-id properties yet.
In follow patches possible_cpus will be used for storing
and setting NUMA node mapping and replace legacy bitmap
based numa_info[node_id].node_cpu/numa_get_node_for_cpu()
For the lack of better idea, this patch cannibalizes
possible_cpus.cpus[x].props.thread_id so that
*_cpu_index_to_props() callback could return addressable
by props CPU which will be used by machine_set_cpu_numa_node()
in follow up patches to assign a CPU to node. But
cannibalizing is fine for now as that thread_id isn't exposed
to users (no hotpluggable_cpus callback support for ARM yet)
and it will be used only internally until 'device_add cpu'
is supported where we can decide on which properties to use.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1493816238-33120-4-git-send-email-imammedo@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'qga/installer')
0 files changed, 0 insertions, 0 deletions