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. 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 | 25 ++- hw/ppc/spapr_caps.c | 555 ++++++++++++++++++++++++++++++++++------------ hw/ppc/spapr_hcall.c | 81 +++++++ include/hw/ppc/spapr.h | 57 +++-- linux-headers/linux/kvm.h | 3 + target/ppc/kvm.c | 28 +++ target/ppc/kvm_ppc.h | 18 ++ 7 files changed, 595 insertions(+), 172 deletions(-) -- 2.13.6