The following patch series reworks the implementation of spapr_caps to allow for a increased number of possible values in the internal representation.
It also adds 3 new tristate capabilities. A new H-Call is implemented which a guest will use to query the requirement for and availability of workarounds for certain cpu behaviours. Applies on top of David's series - spapr: Add optional capabilities Based on ppc-for-2.12 The patches could be split up more, but in the interest of getting them out there they are as they are. Suraj Jitindar Singh (3): hw/ppc/spapr_caps: Rework spapr_caps to use uint8 internal representation hw/spapr/spapr_caps: Add new caps safe_[cache/bounds_check/indirect_branch] target/ppc: Add H-Call H_GET_CPU_CHARACTERISTICS hw/ppc/spapr.c | 51 ++++- hw/ppc/spapr_caps.c | 483 ++++++++++++++++++++++++++++++++-------------- hw/ppc/spapr_hcall.c | 78 ++++++++ include/hw/ppc/spapr.h | 61 +++--- linux-headers/linux/kvm.h | 3 + target/ppc/kvm.c | 28 +++ target/ppc/kvm_ppc.h | 18 ++ 7 files changed, 544 insertions(+), 178 deletions(-) -- 2.13.6