Current QEMU doesn't reset PL061 device state. As a result the device keeps a stale state after guest reboots. This causes VM fail to recceive GPIO commands (e.g. virsh shutdown/reoot commands) after reboot. This patchset adds reset support for PL061 devices. The second patch removes an unused field.
V3: * hook up dc->reset to existing reset function. And stop calling reset in initfn() * add Reviewed-by V2: * derived from V1 after further debug. Now it resets device state instead of using pulse for GPIO IRQ. V1: * initial patch -Wei Wei Huang (2): ARM: PL061: Clear PL061 device state after reset ARM: PL061: Cleaning field of PL061 device state hw/gpio/pl061.c | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) -- 1.8.3.1