]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/iommu/amd_iommu.c
x86/amd-iommu: Protect IOMMU-API map/unmap path
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 8 Feb 2010 13:44:49 +0000 (14:44 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 1 Mar 2010 13:16:22 +0000 (14:16 +0100)
commit5d214fe6e808a8caa9cb6f610c0190d3f50ac570
tree326b6d2ea83d9a5df8ea4eef91834dc3e0da2bac
parent339d3261aa3eb0e12f68ef868e042c1ca03628f7
x86/amd-iommu: Protect IOMMU-API map/unmap path

This patch introduces a mutex to lock page table updates in
the IOMMU-API path. We can't use the spin_lock here because
this patch might sleep.

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