Re: [Qemu-devel] [PATCH] usb: Fix usb_packet_map() in the presence of IOMMUs

2012-09-25 Thread Gerd Hoffmann
On 09/26/12 04:59, David Gibson wrote: > With the IOMMU infrastructure introduced before 1.2, we need to use > dma_memory_map() to obtain a qemu pointer to memory from an IO bus address. > However, dma_memory_map() alters the given length to reflect the length > over which the used DMA translation

[Qemu-devel] [PATCH] usb: Fix usb_packet_map() in the presence of IOMMUs

2012-09-25 Thread David Gibson
With the IOMMU infrastructure introduced before 1.2, we need to use dma_memory_map() to obtain a qemu pointer to memory from an IO bus address. However, dma_memory_map() alters the given length to reflect the length over which the used DMA translation is valid - which could be either more or less t