summaryrefslogtreecommitdiffstats
path: root/hw/timer/cadence_ttc.c
diff options
context:
space:
mode:
authorBharata B Rao2015-06-29 10:20:27 +0200
committerEduardo Habkost2015-07-03 22:47:58 +0200
commite75e2a14d5c13ad38dcf72b69922dee2dafbb0d0 (patch)
tree5aaa6669c9215fef99588d77490cdc211c044d63 /hw/timer/cadence_ttc.c
parentnuma: Store boot memory address range in node_info (diff)
downloadqemu-e75e2a14d5c13ad38dcf72b69922dee2dafbb0d0.tar.gz
qemu-e75e2a14d5c13ad38dcf72b69922dee2dafbb0d0.tar.xz
qemu-e75e2a14d5c13ad38dcf72b69922dee2dafbb0d0.zip
numa: API to lookup NUMA node by address
Introduce an API numa_get_node(ram_addr_t addr, Error **errp) that returns the NUMA node to which the given address belongs to. This API works uniformly for both boot time as well as hotplugged memory. This API is needed by sPAPR PowerPC to support ibm,dynamic-reconfiguration-memory device tree node which is needed for memory hotplug. Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Tested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/timer/cadence_ttc.c')
0 files changed, 0 insertions, 0 deletions