Re: [PATCH 03/26] iommu/vt-d: Split up iommu->domains array

2015-08-07 Thread Joerg Roedel
On Thu, Aug 06, 2015 at 01:20:09PM -0600, Alex Williamson wrote: > On Wed, 2015-08-05 at 17:18 +0200, Joerg Roedel wrote: > > static void set_iommu_domain(struct intel_iommu *iommu, u16 did, > > struct dmar_domain *domain) > > { > > - iommu->domains[did] = domain; > > +

Re: [PATCH 03/26] iommu/vt-d: Split up iommu->domains array

2015-08-06 Thread Alex Williamson
On Wed, 2015-08-05 at 17:18 +0200, Joerg Roedel wrote: > From: Joerg Roedel > > 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

[PATCH 03/26] iommu/vt-d: Split up iommu->domains array

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel 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 p