This series fixes various issues that can happen when running a spapr machine on a POWER9 host and KVM doesn't have proper support to destroy XICS-on-XIVE devices (ie, without the changes at [1]).
Patch 1 and 2 fix a QEMU crash that happens with the default settings, ie. ic-mode=dual and kernel-irqchip is unspecified (ie, emulated fallback is allowed). Patch 3 allows to detect the same KVM limitation when passing kernel-irqchip=on, and to error out early instead of exiting at the next guest reboot. -- Greg [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5422e95103cf9663bc86cf1056a3ea44c2e2f09e --- Greg Kurz (3): xics/spapr: Prevent RTAS/hypercalls emulation to be used by in-kernel XICS xics/spapr: Register RTAS/hypercalls once at machine init xics/spapr: Detect old KVM XICS on POWER9 hosts docs/specs/ppc-spapr-xive.rst | 4 ++- hw/intc/xics_kvm.c | 49 +++++++++++++++++++++++-------------- hw/intc/xics_spapr.c | 54 +++++++++++++++++++++++++++++++++++------ hw/ppc/spapr_irq.c | 16 +++++++++++- include/hw/ppc/spapr.h | 4 --- include/hw/ppc/xics.h | 1 - include/hw/ppc/xics_spapr.h | 2 ++ 7 files changed, 95 insertions(+), 35 deletions(-)