Ide patches
The following changes since commit 21a21b853a1bb606358af61e738abfb9aecbd720:
Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging (2016-07-27 18:18:21 +0100)
are available in the git repository at:
https://github.com/jnsnow/qemu.git tags/ide-pull-request
for you to fetch changes up to 87ac25fd1fed05a30a93d27dbeb2a4c4b83ec95f:
ide: fix halted IO segfault at reset (2016-07-28 17:34:19 -0400)
----------------------------------------------------------------
----------------------------------------------------------------
John Snow (1):
ide: fix halted IO segfault at reset
hw/ide/core.c | 1 + 1 file changed, 1 insertion(+)
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 1/1] ide: fix halted IO segfault at reset
If one attempts to perform a system_reset after a failed IO request that causes the VM to enter a paused state, QEMU will segfault trying to free up the pending IO requests.
These requests have already been completed and freed, though, so all we need to do is NULL them before we enter the paused state.
Existing AHCI tests verify that halted requests are still resumed successfully after a STOP event.
Message-id: [email protected]
--- hw/ide/core.c | 1 + 1 file changed, 1 insertion(+)
hw/ide/core.c +1 -0
@@ -823,6 +823,7 @@ static void ide_dma_cb(void *opaque, int ret) }if (ret <0 ) {if (ide_handle_rw_error (s, -ret,ide_dma_cmd_to_retry (s->dma_cmd))) { + s->bus->dma->aiocb =NULL ;return ; } }
Signature · 1 line
2.7.4
Peter Maydell
AppliedQuoted 14 lines · John Snow
The following changes since commit
21a21b853a1bb606358af61e738abfb9aecbd720:Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging (2016-07-27 18:18:21 +0100)
are available in the git repository at:
https://github.com/jnsnow/qemu.git tags/ide-pull-request
for you to fetch changes up to
87ac25fd1fed05a30a93d27dbeb2a4c4b83ec95f:ide: fix halted IO segfault at reset (2016-07-28 17:34:19 -0400)
----------------------------------------------------------------
Quoted 7 lines
----------------------------------------------------------------
John Snow (1):
ide: fix halted IO segfault at resethw/ide/core.c | 1 + 1 file changed, 1 insertion(+)
Applied, thanks.
-- PMM