qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/4] Block DMA helpers


From: Avi Kivity
Subject: [Qemu-devel] [PATCH 0/4] Block DMA helpers
Date: Wed, 4 Feb 2009 14:25:10 +0200

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.

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   |  146 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 dma.h           |   32 ++++++++++++
 hw/ide.c        |   76 ++++-------------------------
 qemu-common.h   |    1 +
 6 files changed, 196 insertions(+), 67 deletions(-)
 create mode 100644 dma-helpers.c
 create mode 100644 dma.h





reply via email to

[Prev in Thread] Current Thread [Next in Thread]