mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
dma: eliminate DMAContext
The DMAContext is a simple pointer to an AddressSpace that is now always already available. Make everyone hold the address space directly, and clean up the DMA API to use the AddressSpace directly. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
96478592a9
commit
df32fd1c9f
23 changed files with 117 additions and 148 deletions
|
@ -455,7 +455,6 @@ static int spapr_vio_busdev_init(DeviceState *qdev)
|
|||
uint32_t liobn = SPAPR_VIO_BASE_LIOBN | dev->reg;
|
||||
dev->tcet = spapr_tce_new_table(liobn, pc->rtce_window_size);
|
||||
address_space_init(&dev->as, spapr_tce_get_iommu(dev->tcet));
|
||||
dma_context_init(&dev->dma, &dev->as);
|
||||
}
|
||||
|
||||
return pc->init(dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue