]> git.proxmox.com Git - mirror_qemu.git/commit - hw/char/spapr_vty.c
pseries: Convert sPAPR TCEs to use generic IOMMU infrastructure
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 Jun 2012 04:50:44 +0000 (14:50 +1000)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 27 Jun 2012 21:33:25 +0000 (16:33 -0500)
commitad0ebb91cd8b5fdc4a583b03645677771f420a46
tree4449fc0cf864869480c95b79c661c0e0ec254c1a
parente5332e6334f375600b0c15f5c3540c1b72af7067
pseries: Convert sPAPR TCEs to use generic IOMMU infrastructure

The pseries platform already contains an IOMMU implementation, since it is
essential for the platform's paravirtualized VIO devices.  This IOMMU
support is currently built into the implementation of the VIO "bus" and
the various VIO devices.

This patch converts this code to make use of the new common IOMMU
infrastructure.

We don't yet handle synchronization of map/unmap callbacks vs. invalidations,
this will require some complex interaction with the kernel and is not a
major concern at this stage.

Cc: Alex Graf <agraf@suse.de>
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>
hw/ppc/Makefile.objs
hw/spapr.c
hw/spapr.h
hw/spapr_iommu.c [new file with mode: 0644]
hw/spapr_llan.c
hw/spapr_vio.c
hw/spapr_vio.h
hw/spapr_vscsi.c
hw/spapr_vty.c
target-ppc/kvm.c