Skip to content

Block DMA helpers (v2)

Avi Kivity qemu-devel 1 version Applied

Status from this message: Applied all. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesApplied

Changes from v1 from the cover letter

- added license and copyright for new files

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4Add a scatter-gather list type and accessorsMakefile.target dma-helpers.c dma.h+72 -10 replies
2/4Add qemu_iovec_reset()cutils.c qemu-common.h+7 -00 replies
3/4Introduce block dma helpersdma-helpers.c dma.h+126 -10 replies
4/4Convert IDE to use new dma helpershw/ide.c+10 -660 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] Block DMA helpers (v2)

The current dma mapping API is fairly complex to use: mapping can fail when bounce resources are exhausted, requiring the caller to reschedule, and the interface is fairly low level.

This patchset introduces block device oriented helpers to centralize this logic. Devices need only submit a scatter/gather list, and the helpers will do all the dirty work of mapping, rescheduling, and unmapping. IDE has been converted to the new API.

Changes from v1:
- added license and copyright for new files

Avi Kivity (4):
Add a scatter-gather list type and accessors
Add qemu_iovec_reset()
Introduce block dma helpers
Convert IDE to use new dma helpers

 Makefile.target |    2 +-
 cutils.c        |    6 ++
 dma-helpers.c   |  155 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 dma.h           |   41 +++++++++++++++
 hw/ide.c        |   76 ++++-----------------------
 qemu-common.h   |    1 +
 6 files changed, 214 insertions(+), 67 deletions(-)
 create mode 100644 dma-helpers.c
 create mode 100644 dma.h