[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/5] Add target memory mapping API
From: |
Ian Jackson |
Subject: |
Re: [Qemu-devel] [PATCH 1/5] Add target memory mapping API |
Date: |
Thu, 22 Jan 2009 12:24:30 +0000 |
Avi Kivity writes ("[Qemu-devel] [PATCH 1/5] Add target memory mapping API"):
> Devices accessing large amounts of memory (as with DMA) will wish to obtain
> a pointer to guest memory rather than access it indirectly via
> cpu_physical_memory_rw(). Add a new API to convert target addresses to
> host pointers.
>
> In case the target address does not correspond to RAM, a bounce buffer is
> allocated. To prevent the guest from causing the host to allocate unbounded
> amounts of bounce buffer, this memory is limited (currently to one page).
>
> Signed-off-by: Avi Kivity <address@hidden>
...
> +void cpu_physical_memory_unmap(void *buffer, target_phys_addr_t len,
> + int is_write, target_phys_addr_t access_len)
Great, thanks for adding the access_len.
Ian.
- [Qemu-devel] [PATCH 0/5] Direct memory access for devices (v2), Avi Kivity, 2009/01/22
- [Qemu-devel] [PATCH 2/5] Add map client retry notification, Avi Kivity, 2009/01/22
- [Qemu-devel] [PATCH 1/5] Add target memory mapping API, Avi Kivity, 2009/01/22
- Re: [Qemu-devel] [PATCH 1/5] Add target memory mapping API,
Ian Jackson <=
- [Qemu-devel] [PATCH 3/5] I/O vector helpers, Avi Kivity, 2009/01/22
- [Qemu-devel] [PATCH 4/5] Vectored block device API, Avi Kivity, 2009/01/22
- [Qemu-devel] [PATCH 5/5] Convert IDE to directly access guest memory, Avi Kivity, 2009/01/22
- [Qemu-devel] Re: [PATCH 0/5] Direct memory access for devices (v2), Anthony Liguori, 2009/01/22