aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu/dma.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2021-12-31 11:18:15 +0100
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-01-18 10:45:35 +0100
commitfd5e451edbebecaa65d2e6fef09b9afd7eefc951 (patch)
tree71415173350fdfdb1833a27ebb01f947a4d00734 /include/sysemu/dma.h
parent1efc6b319cfab73176412d86fa8f3702ed30c867 (diff)
downloadqemu-fd5e451edbebecaa65d2e6fef09b9afd7eefc951.zip
qemu-fd5e451edbebecaa65d2e6fef09b9afd7eefc951.tar.gz
qemu-fd5e451edbebecaa65d2e6fef09b9afd7eefc951.tar.bz2
hw/dma: Remove CONFIG_USER_ONLY check
DMA API should not be included in user-mode emulation. If so, build should fail. Remove the CONFIG_USER_ONLY check. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: David Hildenbrand <david@redhat.com> Message-Id: <20220111184309.28637-6-f4bug@amsat.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include/sysemu/dma.h')
-rw-r--r--include/sysemu/dma.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/sysemu/dma.h b/include/sysemu/dma.h
index b3faef4..0db2478 100644
--- a/include/sysemu/dma.h
+++ b/include/sysemu/dma.h
@@ -31,8 +31,6 @@ struct QEMUSGList {
AddressSpace *as;
};
-#ifndef CONFIG_USER_ONLY
-
/*
* When an IOMMU is present, bus addresses become distinct from
* CPU/memory physical addresses and may be a different size. Because
@@ -288,7 +286,6 @@ void qemu_sglist_init(QEMUSGList *qsg, DeviceState *dev, int alloc_hint,
AddressSpace *as);
void qemu_sglist_add(QEMUSGList *qsg, dma_addr_t base, dma_addr_t len);
void qemu_sglist_destroy(QEMUSGList *qsg);
-#endif
typedef BlockAIOCB *DMAIOFunc(int64_t offset, QEMUIOVector *iov,
BlockCompletionFunc *cb, void *cb_opaque,