]> git.baikalelectronics.ru Git - kernel.git/commit
x86/amd-iommu: Add device bind reference counting
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 25 Nov 2009 14:59:57 +0000 (15:59 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 27 Nov 2009 13:20:33 +0000 (14:20 +0100)
commitca4a90501e8b10f8bf90c0814c246e487d5ca8c2
treeb3dad45997c5e3c9eb754901e24dbca9c959852a
parent266b4048c9ba0829d23007676f1f39957b9456c1
x86/amd-iommu: Add device bind reference counting

This patch adds a reference count to each device to count
how often the device was bound to that domain. This is
important for single devices that act as an alias for a
number of others. These devices must stay bound to their
domains until all devices that alias to it are unbound from
the same domain.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/include/asm/amd_iommu_types.h
arch/x86/kernel/amd_iommu.c