mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -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
|
@ -617,7 +617,7 @@ pvscsi_build_sglist(PVSCSIState *s, PVSCSIRequest *r)
|
|||
{
|
||||
PCIDevice *d = PCI_DEVICE(s);
|
||||
|
||||
qemu_sglist_init(&r->sgl, 1, pci_dma_context(d));
|
||||
pci_dma_sglist_init(&r->sgl, d, 1);
|
||||
if (r->req.flags & PVSCSI_FLAG_CMD_WITH_SG_LIST) {
|
||||
pvscsi_convert_sglist(r);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue