AMD IOMMU: don't assign preallocated protection domains to devices
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 11 Sep 2008 08:24:48 +0000 (10:24 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Sep 2008 10:59:21 +0000 (12:59 +0200)
In isolation mode the protection domains for the devices are
preallocated and preassigned. This is bad if a device should be passed
to a virtualization guest because the IOMMU code does not know if it is
in use by a driver. This patch changes the code to assign the device to
the preallocated domain only if there are dma mapping requests for it.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found