qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] pci: pass along the return value of dma_memory_rw
@ 2019-10-11  7:01 Klaus Jensen
  2019-10-11  7:01 ` [PATCH 1/1] " Klaus Jensen
  2019-10-23 19:59 ` [PATCH 0/1] " Klaus Birkelund
  0 siblings, 2 replies; 8+ messages in thread
From: Klaus Jensen @ 2019-10-11  7:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: Michael S. Tsirkin

Hi,

While working on fixing the emulated nvme device to pass more tests in
the blktests suite, I discovered that the pci_dma_rw function ignores
the return value of dma_memory_rw.

The nvme device needs to handle DMA errors gracefully in order to pass
the block/011 test ("disable PCI device while doing I/O") in the
blktests suite. This is only possible if the device knows if the DMA
transfer was successful or not.

I can't see what the reason for ignoring the return value would be. But
if there is a good reason, please enlighten me :)


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

 include/hw/pci/pci.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

-- 
2.23.0



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

end of thread, other threads:[~2019-11-11 11:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-11  7:01 [PATCH 0/1] pci: pass along the return value of dma_memory_rw Klaus Jensen
2019-10-11  7:01 ` [PATCH 1/1] " Klaus Jensen
2019-10-23 23:13   ` Philippe Mathieu-Daudé
2019-11-11  9:30     ` Klaus Birkelund
2019-11-11 10:16       ` Michael S. Tsirkin
2019-11-11 10:33         ` Klaus Birkelund
2019-11-11 11:00           ` Michael S. Tsirkin
2019-10-23 19:59 ` [PATCH 0/1] " Klaus Birkelund

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).