spapr: improve ibm,architecture-vec-5 property handling
commit417ece33fc1095f8acfa31208a5502bb8957f000
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 25 Oct 2016 04:47:30 +0000 (24 23:47 -0500)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:38:26 +0000 (28 09:38 +1100)
treed147c87036d2d959e08b4f67e6a80664adb6ac82
parent6787d27b04a79524c547c60701400eb0418e3533
spapr: improve ibm,architecture-vec-5 property handling

ibm,architecture-vec-5 is supposed to encode all option vector 5 bits
negotiated between platform/guest. Currently we hardcode this property
in the boot-time device tree to advertise a single negotiated
capability, "Form 1" NUMA Affinity, regardless of whether or not CAS
has been invoked or that capability has actually been negotiated.

Improve this by generating ibm,architecture-vec-5 based on the full
set of option vector 5 capabilities negotiated via CAS.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
include/hw/ppc/spapr_ovec.h