]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/nvme: Add NVMe NGUID property
authorRoque Arcudia Hernandez <roqueh@google.com>
Thu, 22 Feb 2024 17:50:16 +0000 (17:50 +0000)
committerKlaus Jensen <k.jensen@samsung.com>
Tue, 12 Mar 2024 14:48:56 +0000 (15:48 +0100)
commitbdc31646c59a7fa0e1bfdf899f65d1b6a2f9f357
treeab45a914d3b252d20f631b8658325c3a79324002
parent00d7dffe877db258ac9a18c11fe9fb5d68127163
hw/nvme: Add NVMe NGUID property

This patch adds a way to specify an NGUID for a given NVMe Namespace using a
string of hexadecimal digits with an optional '-' separator to group bytes. For
instance:

-device nvme-ns,nguid="e9accd3b83904e13167cf0593437f57d"

If provided, the NGUID will be part of the Namespace Identification Descriptor
list and the Identify Namespace data.

Signed-off-by: Roque Arcudia Hernandez <roqueh@google.com>
Signed-off-by: Nabih Estefan <nabihestefan@google.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
docs/system/devices/nvme.rst
hw/nvme/ctrl.c
hw/nvme/meson.build
hw/nvme/nguid.c [new file with mode: 0644]
hw/nvme/ns.c
hw/nvme/nvme.h