Files
qemu/hw
Klaus Jensen a80b2ce682 hw/block/nvme: add mapping helpers
Add nvme_map_addr, nvme_map_addr_cmb and nvme_addr_to_cmb helpers and
use them in nvme_map_prp.

This fixes a bug where in the case of a CMB transfer, the device would
map to the buffer with a wrong length.

Fixes: b2b2b67a00 ("nvme: Add support for Read Data and Write Data in CMBs.")
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Andrzej Jakowski <andrzej.jakowski@linux.intel.com>
2020-09-02 08:48:50 +02:00
..
2020-08-21 06:30:32 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:32 -04:00
2020-08-21 06:30:33 -04:00
2020-09-02 08:48:50 +02:00
2020-08-27 14:21:48 -04:00
2020-08-21 06:30:33 -04:00
2020-08-27 14:04:54 -04:00
2020-09-01 08:38:00 +02:00
2020-08-27 14:04:54 -04:00
2020-08-21 06:30:30 -04:00
2020-09-01 08:38:00 +02:00
2020-08-21 06:30:30 -04:00
2020-08-21 06:30:29 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:26 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:25 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:28 -04:00
2020-08-21 06:30:28 -04:00
2020-08-27 14:04:55 -04:00
2020-08-21 06:30:29 -04:00
2020-08-21 06:30:27 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:25 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:27 -04:00
2020-08-21 06:30:27 -04:00
2020-08-21 06:30:27 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:26 -04:00
2020-08-21 06:30:24 -04:00
2020-08-21 06:30:33 -04:00
2020-08-21 06:30:33 -04:00