summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorKlaus Jensen2019-04-12 20:53:16 +0200
committerKlaus Jensen2020-10-27 07:24:47 +0100
commitcba0a8a344fea94aa2212e105611b8e099343cb1 (patch)
treea8aef1b3fe98019092cac3f7eeb91d6be6a8017e /include/block
parenthw/block/nvme: harden cmb access (diff)
downloadqemu-cba0a8a344fea94aa2212e105611b8e099343cb1.tar.gz
qemu-cba0a8a344fea94aa2212e105611b8e099343cb1.tar.xz
qemu-cba0a8a344fea94aa2212e105611b8e099343cb1.zip
hw/block/nvme: add support for scatter gather lists
For now, support the Data Block, Segment and Last Segment descriptor types. See NVM Express 1.3d, Section 4.4 ("Scatter Gather List (SGL)"). Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/nvme.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/block/nvme.h b/include/block/nvme.h
index 65e68a82c8..58647bcdad 100644
--- a/include/block/nvme.h
+++ b/include/block/nvme.h
@@ -412,9 +412,9 @@ typedef union NvmeCmdDptr {
} NvmeCmdDptr;
enum NvmePsdt {
- PSDT_PRP = 0x0,
- PSDT_SGL_MPTR_CONTIGUOUS = 0x1,
- PSDT_SGL_MPTR_SGL = 0x2,
+ NVME_PSDT_PRP = 0x0,
+ NVME_PSDT_SGL_MPTR_CONTIGUOUS = 0x1,
+ NVME_PSDT_SGL_MPTR_SGL = 0x2,
};
typedef struct QEMU_PACKED NvmeCmd {