spapr_vio: take care of creating our own AddressSpace/DMAContext
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Apr 2013 10:38:50 +0000 (12:38 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Jun 2013 14:32:48 +0000 (16:32 +0200)
commit96478592a93f93322ecc20d0a6eccb4d4ef33c7a
treefb82480c4492f6d617494b5b4a88d19128dcd195
parente00387d58243d4ae24ac68008a2aea76313ab997
spapr_vio: take care of creating our own AddressSpace/DMAContext

Fetch the root region from the sPAPRTCETable, and use it to build
an AddressSpace and DMAContext.

Now, everywhere we have a DMAContext we also have access to the
corresponding AddressSpace (either because we create it just before
the DMAContext, or because dma_context_memory's AddressSpace is
trivially address_space_memory).

Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/ppc/spapr_iommu.c
hw/ppc/spapr_vio.c
include/hw/ppc/spapr.h
include/hw/ppc/spapr_vio.h