David Gibson e2f89926f1 usb: Convert usb_packet_{map, unmap} to universal DMA helpers
The USB UHCI and EHCI drivers were converted some time ago to use the
pci_dma_*() helper functions.  However, this conversion was not complete
because in some places both these drivers do DMA via the usb_packet_map()
function in usb-libhw.c.  That function directly used
cpu_physical_memory_map().

Now that the sglist code uses DMA wrappers properly, we can convert the
functions in usb-libhw.c, thus conpleting the conversion of UHCI and EHCI
to use the DMA wrappers.

Note that usb_packet_map() invokes dma_memory_map() with a NULL invalidate
callback function.  When IOMMU support is added, this will mean that
usb_packet_map() and the corresponding usb_packet_unmap() must be called in
close proximity without dropping the qemu device lock - otherwise the guest
might invalidate IOMMU mappings while they are still in use by the device
code.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-06-27 16:33:25 -05:00
2012-06-15 20:58:54 +04:00
2012-06-24 01:04:45 +02:00
2012-06-21 20:04:24 +00:00
2012-06-18 15:32:45 +02:00
2012-06-15 10:41:05 -03:00
2012-06-21 17:59:27 -05:00
2012-05-30 17:04:41 +00:00
2012-04-19 16:51:47 +02:00
2012-05-14 07:27:24 +02:00
2012-03-12 10:30:23 +00:00
2012-04-15 21:25:16 +02:00
2012-03-30 08:14:11 -05:00
2012-05-12 09:14:38 +00:00
2012-06-24 01:04:51 +02:00
2012-06-24 01:04:51 +02:00
2012-04-01 20:30:23 +02:00
2012-05-14 07:27:24 +02:00
2012-03-14 22:20:27 +01:00
2012-03-14 22:20:27 +01:00
2012-03-15 10:39:52 -03:00
2012-06-21 18:45:16 +00:00
2012-03-14 22:20:27 +01:00
2012-06-04 13:49:35 -03:00
2012-06-15 10:41:05 -03:00
2012-06-04 13:49:35 -03:00
2012-05-08 14:30:09 -03:00
2012-03-19 15:17:21 +02:00
2012-06-15 10:41:05 -03:00
2012-05-10 08:33:34 -05:00
2012-06-27 11:57:17 +02:00
2012-03-15 10:39:52 -03:00
2012-06-04 13:49:35 -03:00
2012-06-04 13:49:35 -03:00
2012-04-26 13:14:58 -05:00
2012-03-14 22:20:27 +01:00
2012-04-07 14:00:45 +00:00
2012-05-10 10:32:13 +02:00
2012-06-24 12:16:51 +00:00
2012-04-19 17:19:37 +02:00
2012-04-15 21:25:16 +02:00
2012-04-07 14:00:45 +00:00
2012-05-01 00:17:27 +02:00
2012-06-21 18:45:18 +00:00
2012-05-08 14:30:09 -03:00
2012-04-24 09:50:31 -05:00
2012-03-14 22:20:27 +01:00
2012-03-15 10:39:52 -03:00
2012-06-22 10:34:21 +01:00
2012-06-20 14:46:02 +02:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%