summaryrefslogtreecommitdiffstats
path: root/hw/block/nvme-ns.h
diff options
context:
space:
mode:
authorNiklas Cassel2020-12-08 21:04:03 +0100
committerKlaus Jensen2021-02-08 20:58:34 +0100
commit141354d55ba92768ea8fad54d441d3ba90d2b59e (patch)
tree111037ea589ec772df564e6c32f3a50503602c02 /hw/block/nvme-ns.h
parenthw/block/nvme: Add Commands Supported and Effects log (diff)
downloadqemu-141354d55ba92768ea8fad54d441d3ba90d2b59e.tar.gz
qemu-141354d55ba92768ea8fad54d441d3ba90d2b59e.tar.xz
qemu-141354d55ba92768ea8fad54d441d3ba90d2b59e.zip
hw/block/nvme: Add support for Namespace Types
Define the structures and constants required to implement Namespace Types support. Namespace Types introduce a new command set, "I/O Command Sets", that allows the host to retrieve the command sets associated with a namespace. Introduce support for the command set and enable detection for the NVM Command Set. The new workflows for identify commands rely heavily on zero-filled identify structs. E.g., certain CNS commands are defined to return a zero-filled identify struct when an inactive namespace NSID is supplied. Add a helper function in order to avoid code duplication when reporting zero-filled identify structures. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com> Reviewed-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/block/nvme-ns.h')
-rw-r--r--hw/block/nvme-ns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block/nvme-ns.h b/hw/block/nvme-ns.h
index bdeaf1c0de..bdbc98c2ec 100644
--- a/hw/block/nvme-ns.h
+++ b/hw/block/nvme-ns.h
@@ -31,6 +31,7 @@ typedef struct NvmeNamespace {
int64_t size;
NvmeIdNs id_ns;
const uint32_t *iocs;
+ uint8_t csi;
NvmeNamespaceParams params;