[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/8] hw/dma: Remove CONFIG_USER_ONLY check
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 4/8] hw/dma: Remove CONFIG_USER_ONLY check |
Date: |
Fri, 31 Dec 2021 12:48:57 +0100 |
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>
---
include/sysemu/dma.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/include/sysemu/dma.h b/include/sysemu/dma.h
index b3faef41b2f..0db2478a506 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,
--
2.33.1
- [PATCH 0/8] hw/dma: Introduce dma_size_t type definition, Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 1/8] hw/nvram: Restrict stub to sysemu and tools, Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 2/8] hw/pci: Restrict pci-bus stub to sysemu, Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 3/8] hw/pci: Document pci_dma_map(), Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 4/8] hw/dma: Remove CONFIG_USER_ONLY check,
Philippe Mathieu-Daudé <=
- [PATCH 5/8] hw/rdma/rdma_utils: Rename rdma_pci_dma_map 'len' argument, Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 7/8] hw/dma: Introduce dma_size_t type definition, Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 8/8] hw/dma: Let dma_buf_read() / dma_buf_write() propagate MemTxResult, Philippe Mathieu-Daudé, 2021/12/31
- [PATCH 6/8] hw/scsi: Rename SCSIRequest::resid as 'residual', Philippe Mathieu-Daudé, 2021/12/31