intel-iommu: Introduce domain_sg_mapping() to speed up intel_map_sg()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 29 Jun 2009 10:17:38 +0000 (11:17 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 30 Jun 2009 02:51:30 +0000 (03:51 +0100)
Instead of calling domain_pfn_mapping() repeatedly with single or
small numbers of pages, just pass the sglist in. It can optimise the
number of cache flushes like domain_pfn_mapping() does, and gives a huge
speedup for large scatterlists.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c

Simple merge