]> Git Repo - qemu.git/commit
hw/ppc: clear pending_events on machine reset
authorDaniel Henrique Barboza <[email protected]>
Wed, 30 Aug 2017 18:21:40 +0000 (15:21 -0300)
committerDavid Gibson <[email protected]>
Thu, 7 Sep 2017 23:30:54 +0000 (09:30 +1000)
commit56258174238eb25df629a53a96e1ac16a32dc7d4
treea3a0b0cdb41cf2146fc7da1803cf4debb2f859bd
parentc618e300eb2276996e7004100686768cf1445128
hw/ppc: clear pending_events on machine reset

The sPAPR machine isn't clearing up the pending events QTAILQ on
machine reboot. This allows for unprocessed hotplug/epow events
to persist in the queue after reset and, when reasserting the IRQs in
check_exception later on, these will be being processed by the OS.

This patch implements a new function called 'spapr_clear_pending_events'
that clears up the pending_events QTAILQ. This helper is then called
inside ppc_spapr_reset to clear up the events queue, preventing
old/deprecated events from persisting after a reset.

Signed-off-by: Daniel Henrique Barboza <[email protected]>
Signed-off-by: David Gibson <[email protected]>
hw/ppc/spapr.c
hw/ppc/spapr_events.c
include/hw/ppc/spapr.h
This page took 0.028783 seconds and 4 git commands to generate.