intel-iommu: Fix hardware_largepage_caps()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 28 May 2011 23:27:01 +0000 (00:27 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 28 May 2011 23:31:30 +0000 (00:31 +0100)
 - Don't use domain_get_iommu(). It'll BUG() when used on a VM domain.
 - Do actually check the iov_pfn to see whether it's suitably aligned.
 - "Simplify" the algorithm to give the compiler a chance to optimise.
   (Yes, this version is probably harder to understand. But that's what
    comments in the code are for.)
 - Inline it (it was previously not even static).

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

Simple merge