This should account for AFAIKS all comments, except maybe some about naming.
Changes since v1: - Per-CPU spapr nested state moved to SpaprCpuState from PowerPCCPU. - address_space_map ops are used, small rearrangement to make any given access region store-only or load-only. - Some style, naming, etc cleanups and fixes. Hopefully I didn't miss anything. Thanks, Nick Nicholas Piggin (9): target/ppc: raise HV interrupts for partition table entry problems spapr: prevent hdec timer being set up under virtual hypervisor ppc: allow the hdecr timer to be created/destroyed target/ppc: add vhyp addressing mode helper for radix MMU target/ppc: make vhyp get_pate method take lpid and return success target/ppc: add helper for books vhyp hypercall handler target/ppc: Add powerpc_reset_excp_state helper target/ppc: Introduce a vhyp framework for nested HV support spapr: implement nested-hv capability for the virtual hypervisor hw/ppc/pegasos2.c | 6 + hw/ppc/ppc.c | 23 ++- hw/ppc/spapr.c | 46 ++++- hw/ppc/spapr_caps.c | 14 +- hw/ppc/spapr_cpu_core.c | 6 +- hw/ppc/spapr_hcall.c | 333 ++++++++++++++++++++++++++++++++ include/hw/ppc/ppc.h | 3 + include/hw/ppc/spapr.h | 74 ++++++- include/hw/ppc/spapr_cpu_core.h | 5 + target/ppc/cpu.h | 10 +- target/ppc/excp_helper.c | 117 ++++++++--- target/ppc/mmu-radix64.c | 37 +++- 12 files changed, 621 insertions(+), 53 deletions(-) -- 2.23.0