x86/NUMA: fix SRAT table processor entry parsing and consumption
authorJan Beulich <jbeulich@suse.com>
Wed, 14 Oct 2015 10:46:27 +0000 (12:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 14 Oct 2015 10:46:27 +0000 (12:46 +0200)
commit83281fc9b31396e94c0bfb6550b75c165037a0ad
tree678c72685d585192d2e708027226fa3493fd44c1
parent44f126d3d3b03ec983590313af1d725937d4667c
x86/NUMA: fix SRAT table processor entry parsing and consumption

- don't overrun apicid_to_node[] (possible in the x2APIC case)
- don't limit number of processor related SRAT entries we can consume
- make acpi_numa_{processor,x2apic}_affinity_init() as similar to one
  another as possible
- print APIC IDs in hex (to ease matching with other log messages), at
  once making legacy and x2APIC ones distinguishable (by width)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/numa.c
xen/arch/x86/setup.c
xen/arch/x86/smpboot.c
xen/arch/x86/srat.c
xen/drivers/acpi/numa.c