From: David Woodhouse Date: Sat, 28 May 2011 23:27:01 +0000 (+0100) Subject: intel-iommu: Fix hardware_largepage_caps() X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dabbea96f96de7f334277171b98cfc49607ea4b4;p=pandora-kernel.git intel-iommu: Fix hardware_largepage_caps() - 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 --- Reading git-diff-tree failed