From: Joerg Roedel Date: Tue, 21 Jul 2015 08:41:21 +0000 (+0200) Subject: iommu/vt-d: Split up iommu->domains array X-Git-Tag: omap-for-v4.3/fixes-rc1~57^2^6~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bf478163e69e42973c7070179a11815139e5bf0;p=pandora-kernel.git iommu/vt-d: Split up iommu->domains array This array is indexed by the domain-id and contains the pointers to the domains attached to this iommu. Modern systems support 65536 domain ids, so that this array has a size of 512kb, per iommu. This is a huge waste of space, as the array is usually sparsely populated. This patch makes the array two-dimensional and allocates the memory for the domain pointers on-demand. Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed