target/ppc: Support directed privileged doorbell interrupt (SDOOR)
authorNicholas Piggin <npiggin@gmail.com>
Tue, 30 May 2023 13:05:26 +0000 (23:05 +1000)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Sat, 10 Jun 2023 13:19:24 +0000 (10:19 -0300)
commitfd7abfab662a2bd8bbf63ad52d4b58243cd9c409
tree55982952adfcd0f2030c672ffb5274387ccdd366
parent2e9855555ebbbd4b22418b6bffce1f0f14234141
target/ppc: Support directed privileged doorbell interrupt (SDOOR)

BookS msgsndp instruction to self or DPDES register can cause SDOOR
interrupts which crash QEMU with exception not implemented.

Linux does not use msgsndp in SMT1, and KVM only uses DPDES to cause
doorbells when emulating a SMT guest (which is not the default), so
this has gone unnoticed.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20230530130526.372701-1-npiggin@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/excp_helper.c