Intel IOMMU: IOVA allocation and management routines
authorKeshavamurthy, Anil S <>
Sun, 21 Oct 2007 23:41:48 +0000 (16:41 -0700)
committerLinus Torvalds <>
Mon, 22 Oct 2007 15:13:18 +0000 (08:13 -0700)
Intel IOMMU: IOVA allocation and management routines

This code implements a generic IOVA allocation and management.  As per Dave's
suggestion we are now allocating IO virtual address from Higher DMA limit
address rather than lower end address and this eliminated the need to preserve
the IO virtual address for multiple devices sharing the same domain virtual

Also this code uses red black trees to store the allocated and reserved iova
nodes.  This showed a good performance improvements over previous linear
linked list.

[ remove inlines]
[ coding style fixes]
Signed-off-by: Anil S Keshavamurthy <>
Cc: Andi Kleen <>
Cc: Peter Zijlstra <>
Cc: Muli Ben-Yehuda <>
Cc: "Siddha, Suresh B" <>
Cc: Arjan van de Ven <>
Cc: Ashok Raj <>
Cc: "David S. Miller" <>
Cc: Christoph Lameter <>
Cc: Greg KH <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
drivers/pci/iova.c [new file with mode: 0644]
drivers/pci/iova.h [new file with mode: 0644]