nvme: fix copy direction in DMA reads going to CMB
commit25349e8250e67e7d126fbf0ad213811b62e7e529
authorKlaus Birkelund Jensen <klaus@birkelund.eu>
Sat, 18 May 2019 07:39:05 +0000 (18 09:39 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 20 May 2019 15:08:56 +0000 (20 17:08 +0200)
treee7844104ca4ae4bdda4a717dab3008a94baa2c6f
parent832d78caa51e7ac3c17a37f2c0ed9d904e423a32
nvme: fix copy direction in DMA reads going to CMB

`nvme_dma_read_prp` erronously used `qemu_iovec_*to*_buf` instead of
`qemu_iovec_*from*_buf` when the request involved the controller memory
buffer.

Signed-off-by: Klaus Birkelund Jensen <klaus.jensen@cnexlabs.com>
Reviewed-by: Kenneth Heitke <kenneth.heitke@intel.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/nvme.c