From: Joerg Roedel Date: Thu, 11 Sep 2008 08:24:48 +0000 (+0200) Subject: AMD IOMMU: don't assign preallocated protection domains to devices X-Git-Tag: v2.6.28-rc1~712^2^4~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd60b735c658e6e8c656e89771d281bcfcf51279;p=pandora-kernel.git AMD IOMMU: don't assign preallocated protection domains to devices 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 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed