diff options
| author | Michael Roth | 2016-10-25 06:47:30 +0200 |
|---|---|---|
| committer | David Gibson | 2016-10-28 00:38:26 +0200 |
| commit | 417ece33fc1095f8acfa31208a5502bb8957f000 (patch) | |
| tree | d147c87036d2d959e08b4f67e6a80664adb6ac82 /include | |
| parent | spapr: add option vector handling in CAS-generated resets (diff) | |
| download | qemu-417ece33fc1095f8acfa31208a5502bb8957f000.tar.gz qemu-417ece33fc1095f8acfa31208a5502bb8957f000.tar.xz qemu-417ece33fc1095f8acfa31208a5502bb8957f000.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/ppc/spapr_ovec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr_ovec.h b/include/hw/ppc/spapr_ovec.h index a9a3f3a5bb..81cdd14f64 100644 --- a/include/hw/ppc/spapr_ovec.h +++ b/include/hw/ppc/spapr_ovec.h @@ -44,6 +44,7 @@ typedef struct sPAPROptionVector sPAPROptionVector; /* option vector 5 */ #define OV5_DRCONF_MEMORY OV_BIT(2, 2) +#define OV5_FORM1_AFFINITY OV_BIT(5, 0) /* interfaces */ sPAPROptionVector *spapr_ovec_new(void); |
