diff options
author | Klaus Jensen <k.jensen@samsung.com> | 2020-02-23 14:21:52 +0100 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2020-09-02 08:48:50 +0200 |
commit | a80b2ce68251cf5b11c450173128f29223045b9c (patch) | |
tree | b21544852019b8fe1f8f099dc03f2411cc84fdc8 /default-configs/sparc32plus-linux-user.mak | |
parent | d1322b46684ef38f78760acfd4861b396a9c0264 (diff) | |
download | qemu-a80b2ce68251cf5b11c450173128f29223045b9c.zip |
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: b2b2b67a00574 ("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>
Diffstat (limited to 'default-configs/sparc32plus-linux-user.mak')
0 files changed, 0 insertions, 0 deletions