kernel_optimize_test/drivers/xen
Stefano Stabellini 1b65c4e5a9 swiotlb-xen: use xen_alloc/free_coherent_pages
Use xen_alloc_coherent_pages and xen_free_coherent_pages to allocate or
free coherent pages.

We need to be careful handling the pointer returned by
xen_alloc_coherent_pages, because on ARM the pointer is not equal to
phys_to_virt(*dma_handle). In fact virt_to_phys only works for kernel
direct mapped RAM memory.
In ARM case the pointer could be an ioremap address, therefore passing
it to virt_to_phys would give you another physical address that doesn't
correspond to it.

Make xen_create_contiguous_region take a phys_addr_t as start parameter to
avoid the virt_to_phys calls which would be incorrect.

Changes in v6:
- remove extra spaces.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2013-10-10 13:41:10 +00:00
..
xen-pciback
xenbus
xenfs
acpi.c
balloon.c xen/balloon: don't alloc page while non-preemptible 2013-09-24 16:22:27 -04:00
biomerge.c
cpu_hotplug.c
dbgp.c
events.c
evtchn.c
fallback.c
features.c
gntalloc.c
gntdev.c
grant-table.c
Kconfig xen/arm,arm64: enable SWIOTLB_XEN 2013-10-10 13:40:44 +00:00
Makefile
manage.c
mcelog.c
pci.c
pcpu.c
platform-pci.c
privcmd.c
privcmd.h
swiotlb-xen.c swiotlb-xen: use xen_alloc/free_coherent_pages 2013-10-10 13:41:10 +00:00
sys-hypervisor.c
tmem.c
xen-acpi-cpuhotplug.c
xen-acpi-memhotplug.c
xen-acpi-pad.c
xen-acpi-processor.c
xen-balloon.c
xen-selfballoon.c
xen-stub.c
xencomm.c