OSDN Git Service

iommu/vt-d: Replace iommu_bmp with a refcount
authorJoerg Roedel <jroedel@suse.de>
Tue, 21 Jul 2015 15:17:12 +0000 (17:17 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 12 Aug 2015 14:23:34 +0000 (16:23 +0200)
commit29a27719abaa4d74aed928803c1aa9437bbdde89
tree074df935a97690c0f3e6200d8d3aadc2fabc3d19
parentaf1089ce388b2d14c8331b96567b7e3b7eb5f35b
iommu/vt-d: Replace iommu_bmp with a refcount

This replaces the dmar_domain->iommu_bmp with a similar
reference count array. This allows us to keep track of how
many devices behind each iommu are attached to the domain.

This is necessary for further simplifications and
optimizations to the iommu<->domain attachment code.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c