diff options
author | Igor Mammedov | 2017-05-10 13:29:50 +0200 |
---|---|---|
committer | Eduardo Habkost | 2017-05-11 21:08:49 +0200 |
commit | 7c88e65d9e9ff7df7fa9cff1869d64a0eaac63a1 (patch) | |
tree | bbec68ffe20884a4ed0d3baebb2a8730153c0c16 /hw/core/stream.c | |
parent | numa: add check that board supports cpu_index to node mapping (diff) | |
download | qemu-7c88e65d9e9ff7df7fa9cff1869d64a0eaac63a1.tar.gz qemu-7c88e65d9e9ff7df7fa9cff1869d64a0eaac63a1.tar.xz qemu-7c88e65d9e9ff7df7fa9cff1869d64a0eaac63a1.zip |
numa: mirror cpu to node mapping in MachineState::possible_cpus
Introduce machine_set_cpu_numa_node() helper that stores
node mapping for CPU in MachineState::possible_cpus.
CPU and node it belongs to is specified by 'props' argument.
Patch doesn't remove old way of storing mapping in
numa_info[X].node_cpu as removing it at the same time
makes patch rather big. Instead it just mirrors mapping
in possible_cpus and follow up per target patches will
switch to possible_cpus and numa_info[X].node_cpu will
be removed once there isn't any users left.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Message-Id: <1494415802-227633-7-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/core/stream.c')
0 files changed, 0 insertions, 0 deletions