[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/5] PCI DMA API (v3)
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH 1/5] PCI DMA API (v3) |
Date: |
Wed, 16 Apr 2008 22:51:08 +0300 |
On 4/16/08, Anthony Liguori <address@hidden> wrote:
> This patch introduces a DMA API and plumbs support through the DMA layer. We
> use a mostly opaque structure, IOVector to represent a scatter/gather list of
> physical memory. Associated with each IOVector is a read/write function and
> an opaque pointer. This allows arbitrary transformation/mapping of the
> data while providing an easy mechanism to short-cut the zero-copy case
> in the block/net backends.
This looks much better also for Sparc uses. I converted pcnet to use
the IOVectors (see patch), it does not work yet but looks doable.
IMHO the read/write functions should be a property of the bus so that
they are hidden from the device, for pcnet it does not matter as we
have to do the swapping anyway.
pcnet_dma_api.diff
Description: plain/text
- [Qemu-devel] [PATCH 1/5] PCI DMA API (v3), Anthony Liguori, 2008/04/15
- [Qemu-devel] [PATCH 5/5] virtio balloon driver (v3), Anthony Liguori, 2008/04/15
- [Qemu-devel] [PATCH 2/5] virtio for QEMU (v3), Anthony Liguori, 2008/04/15
- [Qemu-devel] [PATCH 3/5] virtio network driver (v3), Anthony Liguori, 2008/04/15
- [Qemu-devel] [PATCH 4/5] virtio block driver (v3), Anthony Liguori, 2008/04/15
- Re: [Qemu-devel] [PATCH 1/5] PCI DMA API (v3),
Blue Swirl <=
- Re: [Qemu-devel] [PATCH 1/5] PCI DMA API (v3), Anthony Liguori, 2008/04/16
- Re: [Qemu-devel] [PATCH 1/5] PCI DMA API (v3), Blue Swirl, 2008/04/17
- Re: [Qemu-devel] [PATCH 1/5] PCI DMA API (v3), Anthony Liguori, 2008/04/17
- Re: [Qemu-devel] [PATCH 1/5] PCI DMA API (v3), Blue Swirl, 2008/04/19
- Re: [kvm-devel] [Qemu-devel] [PATCH 1/5] PCI DMA API (v3), Anthony Liguori, 2008/04/19
- Re: [kvm-devel] [Qemu-devel] [PATCH 1/5] PCI DMA API (v3), Blue Swirl, 2008/04/20
- Re: [kvm-devel] [Qemu-devel] [PATCH 1/5] PCI DMA API (v3), Anthony Liguori, 2008/04/20