Skip to content

Rebase more aio dma cancellation work

Mark McLoughlin qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Use vectored aiocb storage to store vector translation stateblock.c+14 -151 reply
2/4Move block dma helpers aiocb to store dma statedma-helpers.c+20 -171 reply
3/4Fix vectored aio bounce handling immediate errorsblock.c+5 -01 reply
4/4Fix DMA API when handling an immediate error from block layerdma-helpers.c+21 -61 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [STABLE][PATCH 0/4] Rebase more aio dma cancellation work

Hi,
We've a report of F11 qemu segfaulting when using read-only
images here:

https://bugzilla.redhat.com/497170

Looking at the current code in stable, there is clearly some
borkage:

- No error handling in bdrv_aio_rw_vector()

- No error handling in dma_bdrv_cb()/dma_bdrv_io()

- VectorTranslationState is leaked by bdrv_aio_rw_vector_cb()

- dma_aio_cancel() is cancelling the wrong aio

The rest of Avi's aio cancellation patches actually fixes all
these problems. Please apply to stable.

Cheers,
Mark.