ppc: Fix conditions for delivering external interrupts to a guest
commitd1dbe37c1ee3f14cb64a9ae3c89f637fdd08fca1
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 27 Jun 2016 06:55:17 +0000 (27 08:55 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 30 Jun 2016 23:57:01 +0000 (1 09:57 +1000)
tree53e59fac7795452ff559ee6dc4efb6c23ea63433
parent4b3fc37788fe5a9c6ec0c43863c78604db40cbb3
ppc: Fix conditions for delivering external interrupts to a guest

External interrupts can bypass the MSR_EE test if they occur in guest
mode and LPES0 is clear. In that case they are directed to the hypervisor

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/excp_helper.c