summary refs log tree commit diff stats
path: root/docs/devel/writing-monitor-commands.rst
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2024-11-11 16:37:49 +1000
committerNicholas Piggin <npiggin@gmail.com>2024-11-27 02:47:25 +1000
commitfa416ae6157a933ad3f7106090684759baaaf3c9 (patch)
tree162e5fbaaf2276cd72832efbec14e2da20661e98 /docs/devel/writing-monitor-commands.rst
parentba54a7e6b86884e43bed2d2f5a79c719059652a8 (diff)
downloadfocaccia-qemu-fa416ae6157a933ad3f7106090684759baaaf3c9.tar.gz
focaccia-qemu-fa416ae6157a933ad3f7106090684759baaaf3c9.zip
target/ppc: Fix non-maskable interrupt while halted
The ppc (pnv and spapr) NMI injection code does not go through the
asynchronous interrupt path and set a bit in env->pending_interrupts
and raise an interrupt request that the cpu_exec() loop can see.
Instead it injects the exception directly into registers.

This can lead to cpu_exec() missing that the thread has work to do,
if a NMI is injected while it was idle.

Fix this by clearing halted when injecting the interrupt. Probably
NMI injection should be reworked to use the interrupt request interface,
but this seems to work as a minimal fix.

Fixes: 3431648272d3 ("spapr: Add support for new NMI interface")
Reviewed-by: Glenn Miles <milesg@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'docs/devel/writing-monitor-commands.rst')
0 files changed, 0 insertions, 0 deletions