]> git.baikalelectronics.ru Git - kernel.git/commit
x86/amd-iommu: Let domain_for_device handle aliases
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 24 Nov 2009 14:39:42 +0000 (15:39 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 27 Nov 2009 13:17:09 +0000 (14:17 +0100)
commit0b331d9d8132a7c72a2a7548634662d1825415d3
tree0c3992a2bcedab86647f3829bbbc97e9eec9dfdb
parent548a70b0a3ccee9205e81ef863f98757323c441d
x86/amd-iommu: Let domain_for_device handle aliases

If there is no domain associated to a device yet and the
device has an alias device which already has a domain, the
original device needs to have the same domain as the alias
device.
This patch changes domain_for_device to handle this
situation and directly assigns the alias device domain to
the device in this situation.

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