diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2012-06-27 14:50:43 +1000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-06-27 16:33:25 -0500 |
commit | e5332e6334f375600b0c15f5c3540c1b72af7067 (patch) | |
tree | 2dc4027f7d3c21acd8545bfbdd2e7eea2291c9f1 /hw/qdev-dma.h | |
parent | e2f89926f19d2940eda070542501f39f51a8c81f (diff) |
iommu: Introduce IOMMU emulation infrastructure
This patch adds the basic infrastructure necessary to emulate an IOMMU
visible to the guest. The DMAContext structure is extended with
information and a callback describing the translation, and the various
DMA functions used by devices will now perform IOMMU translation using
this callback.
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev-dma.h')
-rw-r--r-- | hw/qdev-dma.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/qdev-dma.h b/hw/qdev-dma.h index f0ff558414..6812735e3d 100644 --- a/hw/qdev-dma.h +++ b/hw/qdev-dma.h @@ -6,7 +6,5 @@ * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ -#include "qdev-addr.h" - #define DEFINE_PROP_DMAADDR(_n, _s, _f, _d) \ - DEFINE_PROP_TADDR(_n, _s, _f, _d) + DEFINE_PROP_HEX64(_n, _s, _f, _d) |