diff options
author | Dmitry Fomichev | 2020-12-08 21:03:59 +0100 |
---|---|---|
committer | Klaus Jensen | 2021-02-08 18:55:48 +0100 |
commit | b52f26cd1f743a63682d33a7e3d427b9610e9545 (patch) | |
tree | 6b0c00553b50757e038d7d0a9023a1070d7e485a /hw/block/nvme-ns.h | |
parent | hw/block/nvme: Process controller reset and shutdown differently (diff) | |
download | qemu-b52f26cd1f743a63682d33a7e3d427b9610e9545.tar.gz qemu-b52f26cd1f743a63682d33a7e3d427b9610e9545.tar.xz qemu-b52f26cd1f743a63682d33a7e3d427b9610e9545.zip |
hw/block/nvme: Generate namespace UUIDs
In NVMe 1.4, a namespace must report an ID descriptor of UUID type
if it doesn't support EUI64 or NGUID. Add a new namespace property,
"uuid", that provides the user the option to either specify the UUID
explicitly or have a UUID generated automatically every time a
namespace is initialized.
Suggested-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Niklas Cassel <Niklas.Cassel@wdc.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/block/nvme-ns.h')
-rw-r--r-- | hw/block/nvme-ns.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block/nvme-ns.h b/hw/block/nvme-ns.h index ed3d7e65d5..aeca810fc7 100644 --- a/hw/block/nvme-ns.h +++ b/hw/block/nvme-ns.h @@ -21,6 +21,7 @@ typedef struct NvmeNamespaceParams { uint32_t nsid; + QemuUUID uuid; } NvmeNamespaceParams; typedef struct NvmeNamespace { |