spapr: Add H-Call H_HOME_NODE_ASSOCIATIVITY
commitc24ba3d0a34f68ad2c6bf1a15bc43770005f6cc0
authorLaurent Vivier <lvivier@redhat.com>
Wed, 19 Dec 2018 16:35:41 +0000 (19 17:35 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 8 Jan 2019 22:28:13 +0000 (9 09:28 +1100)
tree1ff3461fc04a34940174c618050d61169ef51e6c
parent147923b1a901a0370f83a0f4c58ec1baffef22f0
spapr: Add H-Call H_HOME_NODE_ASSOCIATIVITY

H_HOME_NODE_ASSOCIATIVITY H-Call returns the associativity domain
designation associated with the identifier input parameter

This fixes a crash when we try to hotplug a CPU in memory-less and
CPU-less numa node. In this case, the kernel tries to online the
node, but without the information provided by this h-call, the node id,
it cannot and the CPU is started while the node is not onlined.

It also removes the warning message from the kernel:
  VPHN is not supported. Disabling polling..

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
hw/ppc/spapr_hcall.c
include/hw/ppc/spapr.h