Re: [PATCH 4/4] dma: Let ld*_dma() propagate MemTxResult

2021-12-21 Thread Cédric Le Goater
On 12/18/21 15:51, Philippe Mathieu-Daudé wrote: dma_memory_read() returns a MemTxResult type. Do not discard it, return it to the caller. Good ! We should be using it in XIVE. Update the few callers. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Cédric Le Goater Thanks, C.

Re: [PATCH 4/4] dma: Let ld*_dma() propagate MemTxResult

2021-12-21 Thread Richard Henderson
On 12/18/21 6:51 AM, Philippe Mathieu-Daudé wrote: dma_memory_read() returns a MemTxResult type. Do not discard it, return it to the caller. Update the few callers. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/pci/pci.h | 6 -- include/hw/ppc/spapr_vio.h | 6 +- incl

[PATCH 4/4] dma: Let ld*_dma() propagate MemTxResult

2021-12-18 Thread Philippe Mathieu-Daudé
dma_memory_read() returns a MemTxResult type. Do not discard it, return it to the caller. Update the few callers. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/pci/pci.h | 6 -- include/hw/ppc/spapr_vio.h | 6 +- include/sysemu/dma.h | 25 -