diff options
| author | Anthony Liguori <aliguori@us.ibm.com> | 2012-10-22 13:26:07 -0500 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-10-22 13:26:07 -0500 |
| commit | d3e2efc5b540c4e99ed5bcc0db3b1158ef52af43 (patch) | |
| tree | 99bdc14357f131ce43ec8309d677a04285a9fa42 /hw/spapr_iommu.c | |
| parent | f354b1a1ee7a1c72d51b42808724a2b10eec315f (diff) | |
| parent | 1c380f9460522f32c8dd2577b2a53d518ec91c6d (diff) | |
| download | focaccia-qemu-d3e2efc5b540c4e99ed5bcc0db3b1158ef52af43.tar.gz focaccia-qemu-d3e2efc5b540c4e99ed5bcc0db3b1158ef52af43.zip | |
Merge remote-tracking branch 'qemu-kvm/memory/dma' into staging
* qemu-kvm/memory/dma: (23 commits) pci: honor PCI_COMMAND_MASTER pci: give each device its own address space memory: add address_space_destroy() dma: make dma access its own address space memory: per-AddressSpace dispatch s390: avoid reaching into memory core internals memory: use AddressSpace for MemoryListener filtering memory: move tcg flush into a tcg memory listener memory: move address_space_memory and address_space_io out of memory core memory: manage coalesced mmio via a MemoryListener xen: drop no-op MemoryListener callbacks kvm: drop no-op MemoryListener callbacks xen_pt: drop no-op MemoryListener callbacks vfio: drop no-op MemoryListener callbacks memory: drop no-op MemoryListener callbacks memory: provide defaults for MemoryListener operations memory: maintain a list of address spaces memory: export AddressSpace memory: prepare AddressSpace for exporting xen_pt: use separate MemoryListeners for memory and I/O ...
Diffstat (limited to 'hw/spapr_iommu.c')
| -rw-r--r-- | hw/spapr_iommu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/spapr_iommu.c b/hw/spapr_iommu.c index 38034c07bd..33f84e27aa 100644 --- a/hw/spapr_iommu.c +++ b/hw/spapr_iommu.c @@ -21,6 +21,7 @@ #include "qdev.h" #include "kvm_ppc.h" #include "dma.h" +#include "exec-memory.h" #include "hw/spapr.h" @@ -124,7 +125,7 @@ DMAContext *spapr_tce_new_dma_context(uint32_t liobn, size_t window_size) } tcet = g_malloc0(sizeof(*tcet)); - dma_context_init(&tcet->dma, spapr_tce_translate, NULL, NULL); + dma_context_init(&tcet->dma, &address_space_memory, spapr_tce_translate, NULL, NULL); tcet->liobn = liobn; tcet->window_size = window_size; |