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)
commite1605495c716ef4eebdb7606bcd1b593f28e2837
treede1144b9697f94dda08b3a9434fa97e0dbaab93f
parent875764de6f0ddb23d270c29357d5a339232a0488
intel-iommu: Introduce domain_sg_mapping() to speed up intel_map_sg()

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