]> xenbits.xen.org Git - xenclient/ioemu.git/commit
xen: use mapcache for cpu_physical_memory_map
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 31 Mar 2009 15:54:56 +0000 (16:54 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 31 Mar 2009 15:54:56 +0000 (16:54 +0100)
commit191158d4c289d1bf7c154ad6b51f776f680982d5
treec4601cc33b7d65330d6f43694af856109fb1a386
parenta6a11dfdea7f71ed31eed79446769e5da7b35aa0
xen: use mapcache for cpu_physical_memory_map

this patch improves qemu-xen's mapcache to be able to guarantee that
certain mappings are going to last until explicitly unmapped.
This capability is necessary to implement cpu_physical_memory_map and
cpu_physical_memory_unmap that are part of the new dma api.
This patch also provides the implementation of these two functions,
removing the one based on bounce buffers that we are currently using.

Current DMA throughput: ~10MB/s
DMA throughput with this patch:  ~27MB/s

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/xen_machine_fv.c
i386-dm/exec-dm.c
qemu-xen.h