]> www.infradead.org Git - users/jedix/linux-maple.git/commit
intel-iommu: set iommu_superpage on VM domains to lowest common denominator
authorAllen Kay <allen.m.kay@intel.com>
Fri, 14 Oct 2011 19:32:17 +0000 (12:32 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:00:12 +0000 (13:00 -0800)
commit07cd6662edc7896d25a6a6c3d205da13cebed613
tree21751823cc535358d8f03ca654a2b2dbb37c0160
parent6e2aaddba8255927dfa367703d47dd2f62f23dc2
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