xen/x86: use paddr_t for addresses in NUMA node structure
authorWei Chen <wei.chen@arm.com>
Fri, 10 Jun 2022 05:53:14 +0000 (13:53 +0800)
committerJulien Grall <jgrall@amazon.com>
Fri, 17 Jun 2022 08:36:12 +0000 (09:36 +0100)
commit94a03b2254a81f00cbb8f9977cdd9e3cce32fc08
tree4bee4153c75f3e5af306203c4a1a0a3ec08356de
parente8f1c8118f7693be20eab2abcb86d16d12729ba0
xen/x86: use paddr_t for addresses in NUMA node structure

NUMA node structure "struct node" is using u64 as node memory
range. In order to make other architectures can reuse this
NUMA node relative code, we replace the u64 to paddr_t. And
use pfn_to_paddr and paddr_to_pfn to replace explicit shift
operations. The relate PRIx64 in print messages have been
replaced by PRIpaddr at the same time. And some being-phased-out
types like u64 in the lines we have touched also have been
converted to uint64_t or unsigned long.

Tested-by: Jiamei Xie <jiamei.xie@arm.com>
Signed-off-by: Wei Chen <wei.chen@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/include/asm/numa.h
xen/arch/x86/numa.c
xen/arch/x86/srat.c