intel-iommu: set iommu_superpage on VM domains to lowest common denominator
commitc46f906e93c81844de1c41e2e6fc1a6a36131c4f
authorAllen Kay <allen.m.kay@intel.com>
Fri, 14 Oct 2011 19:32:17 +0000 (14 12:32 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Dec 2011 20:57:37 +0000 (21 12:57 -0800)
tree9071ebc77cde10ee56990e7030ed296b7cf98dac
parentb0db8ad8ad0cb8f2980c3bd742f4f95eb24818b4
intel-iommu: set iommu_superpage on VM domains to lowest common denominator

commit 8140a95d228efbcd64d84150e794761a32463947 upstream.

set dmar->iommu_superpage field to the smallest common denominator
of super page sizes supported by all active VT-d engines.  Initialize
this field in intel_iommu_domain_init() API so intel_iommu_map() API
will be able to use iommu_superpage field to determine the appropriate
super page size to use.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Youquan Song <youquan.song@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/intel-iommu.c