]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
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)
commitbd60b735c658e6e8c656e89771d281bcfcf51279
tree3587d684e56ed7e057d30b022fa1985990a08939
parentb39ba6ad004a31bf2a08ba2b08c1e0f9b3530bb7
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 <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu.c
include/asm-x86/amd_iommu_types.h