[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 4/9] hw/dma: Remove CONFIG_USER_ONLY check
From: |
David Hildenbrand |
Subject: |
Re: [PATCH v2 4/9] hw/dma: Remove CONFIG_USER_ONLY check |
Date: |
Mon, 10 Jan 2022 09:45:18 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 |
On 04.01.22 09:54, Philippe Mathieu-Daudé wrote:
> From: Philippe Mathieu-Daudé <philmd@redhat.com>
>
> 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>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> 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,
Reviewed-by: David Hildenbrand <david@redhat.com>
--
Thanks,
David / dhildenb
- [PATCH v2 1/9] hw/nvram: Restrict stub to sysemu and tools, (continued)
- [PATCH v2 1/9] hw/nvram: Restrict stub to sysemu and tools, Philippe Mathieu-Daudé, 2022/01/04
- [PATCH v2 2/9] hw/pci: Restrict pci-bus stub to sysemu, Philippe Mathieu-Daudé, 2022/01/04
- [PATCH v2 3/9] hw/pci: Document pci_dma_map(), Philippe Mathieu-Daudé, 2022/01/04
- [PATCH v2 4/9] hw/dma: Remove CONFIG_USER_ONLY check, Philippe Mathieu-Daudé, 2022/01/04
- [PATCH v2 5/9] hw/rdma/rdma_utils: Rename rdma_pci_dma_map 'len' argument, Philippe Mathieu-Daudé, 2022/01/04
- [PATCH v2 6/9] hw/scsi: Rename SCSIRequest::resid as 'residual', Philippe Mathieu-Daudé, 2022/01/04
- [PATCH v2 7/9] hw/dma: Fix format string issues using dma_addr_t, Philippe Mathieu-Daudé, 2022/01/04
- [PATCH v2 8/9] hw/dma: Use dma_addr_t type definition when relevant, Philippe Mathieu-Daudé, 2022/01/04