qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND v3 00/10] hw: Let DMA/PCI API propagate MemTxResult
@ 2020-10-23 15:19 Philippe Mathieu-Daudé
  2020-10-23 15:19 ` [PATCH RESEND v3 01/10] pci: pass along the return value of dma_memory_rw Philippe Mathieu-Daudé
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-10-23 15:19 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Philippe Mathieu-Daudé

Currently the MemTxResult return value is not propagated,
so lost. The motivation behind this series is to make the
API more robust to enforce correct use by the consumers.

All series reviewed.

Since v2:
- Rebased
- Removed patches adding MemTxAttrs argument to DMA/PCI API
  (we will discuss them later).

v2:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg746761.html

The DMA API propagates MemTxResult:
- MEMTX_OK,
- MEMTX_device_ERROR,
- MEMTX_DECODE_ERROR.

Let the PCI DMA API propagate them, as they are
clearer than an undocumented 'int'.

Supersedes: <20201001172519.1620782-1-philmd@redhat.com>

Klaus Jensen (1):
  pci: pass along the return value of dma_memory_rw

Philippe Mathieu-Daudé (9):
  docs/devel/loads-stores: Add regexp for DMA functions
  dma: Document address_space_map/address_space_unmap() prototypes
  dma: Let dma_memory_set() propagate MemTxResult
  dma: Let dma_memory_rw() propagate MemTxResult
  dma: Let dma_memory_read() propagate MemTxResult
  dma: Let dma_memory_write() propagate MemTxResult
  pci: Let pci_dma_rw() propagate MemTxResult
  pci: Let pci_dma_read() propagate MemTxResult
  pci: Let pci_dma_write() propagate MemTxResult

 docs/devel/loads-stores.rst |   2 +
 include/hw/pci/pci.h        |  53 +++++++++++++---
 include/sysemu/dma.h        | 117 ++++++++++++++++++++++++++++++------
 softmmu/dma-helpers.c       |   7 ++-
 4 files changed, 150 insertions(+), 29 deletions(-)

-- 
2.26.2




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-10-23 15:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-23 15:19 [PATCH RESEND v3 00/10] hw: Let DMA/PCI API propagate MemTxResult Philippe Mathieu-Daudé
2020-10-23 15:19 ` [PATCH RESEND v3 01/10] pci: pass along the return value of dma_memory_rw Philippe Mathieu-Daudé
2020-10-23 15:19 ` [PATCH RESEND v3 02/10] docs/devel/loads-stores: Add regexp for DMA functions Philippe Mathieu-Daudé
2020-10-23 15:19 ` [PATCH RESEND v3 03/10] dma: Document address_space_map/address_space_unmap() prototypes Philippe Mathieu-Daudé
2020-10-23 15:19 ` [PATCH RESEND v3 04/10] dma: Let dma_memory_set() propagate MemTxResult Philippe Mathieu-Daudé
2020-10-23 15:19 ` [PATCH RESEND v3 05/10] dma: Let dma_memory_rw() " Philippe Mathieu-Daudé
2020-10-23 15:19 ` [PATCH RESEND v3 06/10] dma: Let dma_memory_read() " Philippe Mathieu-Daudé
2020-10-23 15:19 ` [PATCH RESEND v3 07/10] dma: Let dma_memory_write() " Philippe Mathieu-Daudé
2020-10-23 15:19 ` [PATCH RESEND v3 08/10] pci: Let pci_dma_rw() " Philippe Mathieu-Daudé
2020-10-23 15:19 ` [PATCH RESEND v3 09/10] pci: Let pci_dma_read() " Philippe Mathieu-Daudé
2020-10-23 15:19 ` [PATCH RESEND v3 10/10] pci: Let pci_dma_write() " Philippe Mathieu-Daudé
2020-10-23 15:20 ` [PATCH RESEND v3 00/10] hw: Let DMA/PCI API " Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).