[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 0/5] Direct memory access for devices
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH 0/5] Direct memory access for devices |
Date: |
Mon, 19 Jan 2009 18:50:38 +0200 |
On 1/18/09, Avi Kivity <address@hidden> wrote:
> One of the deficiencies of the current device layer is that it can only access
> guest RAM via cpu_physical_memory_rw(). This means that the device emulation
> code must copy the memory to or from a temporary buffer, even though the host
> offers APIs which allow direct access to memory. This reduces efficiency on
> DMA capable devices, especially disks.
>
> This patchset introduces a complement to the read/write API,
> cpu_physical_memory_map() which allows device emulation code to map
> guest memory directly. The API bounces memory regions which cannot be
> mapped (such as mmio regions) using an internal buffer.
>
> As an example, IDE emulation is converted to use the new API. This exposes
> another deficiency: lack of scatter/gather support in the block layer. To
> work around this, a vectored block API is introduced, currently emulated
> by bouncing. Additional work is needed to convert all block format drivers
> to use the vectored API.
Great!
I'll try to use the API for ESP and Lance on Sparc32, that may reveal
if there are any problems in the design.
- Re: [Qemu-devel] Re: [PATCH 1/5] Add target memory mapping API, (continued)
- Re: [Qemu-devel] Re: [PATCH 1/5] Add target memory mapping API, Anthony Liguori, 2009/01/21
- Re: [Qemu-devel] Re: [PATCH 1/5] Add target memory mapping API, Ian Jackson, 2009/01/22
- Re: [Qemu-devel] Re: [PATCH 1/5] Add target memory mapping API, Anthony Liguori, 2009/01/22
- Re: [Qemu-devel] Re: [PATCH 1/5] Add target memory mapping API, Ian Jackson, 2009/01/26
- Re: [Qemu-devel] Re: [PATCH 1/5] Add target memory mapping API, Anthony Liguori, 2009/01/26
[Qemu-devel] Re: Add target memory mapping API, Mike Day, 2009/01/21
[Qemu-devel] [PATCH 2/5] Add map client retry notification, Avi Kivity, 2009/01/18
Re: [Qemu-devel] [PATCH 0/5] Direct memory access for devices,
Blue Swirl <=