xics/spapr: Prevent RTAS/hypercalls emulation to be used by in-kernel XICS
commitd9715d67722ebd7198a35681cfc9a6595bdb08f0
authorGreg Kurz <groug@kaod.org>
Thu, 13 Jun 2019 16:44:54 +0000 (13 18:44 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 1 Jul 2019 23:43:58 +0000 (2 09:43 +1000)
treea3fa8150f76850328598b8d795c7daba0e55a03c
parent740a19313b85527f6984b0fd4fee9b683b4ea1e2
xics/spapr: Prevent RTAS/hypercalls emulation to be used by in-kernel XICS

The XICS-related RTAS calls and hypercalls in QEMU are not supposed to
be called when the KVM in-kernel XICS is in use.

Add some explicit checks to detect that, print an error message and report
an hardware error to the guest.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <156044429419.125694.507569071972451514.stgit@bahia.lab.toulouse-stg.fr.ibm.com>
[dwg: Correction to commit message]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xics_spapr.c