spapr: Clarify error and documentation for broken KVM XICS
commitc55bcb1f47071a134a4b96b4137cccca831ac5cf
authorGreg Kurz <groug@kaod.org>
Wed, 5 Aug 2020 15:47:16 +0000 (5 17:47 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 12 Aug 2020 03:16:27 +0000 (12 13:16 +1000)
tree3debc4e46824372dd10fab5e3e181e2c65af3c6a
parent8d14523b1c98e7e64844a997d07dffcc32c83bef
spapr: Clarify error and documentation for broken KVM XICS

When starting an L2 KVM guest with `ic-mode=dual,kernel-irqchip=on`,
QEMU fails with:

KVM is too old to support ic-mode=dual,kernel-irqchip=on

This error message was introduced to detect older KVM versions that
didn't allow destruction and re-creation of the XICS KVM device that
we do at reboot. But it is actually the same issue that we get with
nested guests : when running under pseries, KVM currently provides
a genuine XICS device (not the XICS-on-XIVE device that we get
under powernv) which doesn't support destruction/re-creation.

This will eventually be fixed in KVM but in the meantime, update
the error message and documentation to mention the nested case.
While here, mention that in "No XIVE support in KVM" section that
this can also happen with "guest OSes supporting XIVE" since
we check this at init time before starting the guest.

Reported-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
Buglink: https://bugs.launchpad.net/qemu/+bug/1890290
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <159664243614.622889.18307368735989783528.stgit@bahia.lan>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
docs/specs/ppc-spapr-xive.rst
hw/ppc/spapr_irq.c