mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -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
|
@ -80,7 +80,7 @@ static void virtio_scsi_bad_req(void)
|
|||
static void qemu_sgl_init_external(QEMUSGList *qsgl, struct iovec *sg,
|
||||
hwaddr *addr, int num)
|
||||
{
|
||||
qemu_sglist_init(qsgl, num, &dma_context_memory);
|
||||
qemu_sglist_init(qsgl, num, &address_space_memory);
|
||||
while (num--) {
|
||||
qemu_sglist_add(qsgl, *(addr++), (sg++)->iov_len);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue