Skip to content
Commit 8bf47816 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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: default avatarJoerg Roedel <jroedel@suse.de>
parent 9452d5bf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment