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>
This commit is contained in:
Roque Arcudia Hernandez 2024-02-22 17:50:16 +00:00 committed by Klaus Jensen
parent 00d7dffe87
commit bdc31646c5
6 changed files with 229 additions and 7 deletions

View file

@ -81,6 +81,13 @@ There are a number of parameters available:
Set the UUID of the namespace. This will be reported as a "Namespace UUID"
descriptor in the Namespace Identification Descriptor List.
``nguid``
Set the NGUID of the namespace. This will be reported as a "Namespace Globally
Unique Identifier" descriptor in the Namespace Identification Descriptor List.
It is specified as a string of hexadecimal digits containing exactly 16 bytes
or "auto" for a random value. An optional '-' separator could be used to group
bytes. If not specified the NGUID will remain all zeros.
``eui64``
Set the EUI-64 of the namespace. This will be reported as a "IEEE Extended
Unique Identifier" descriptor in the Namespace Identification Descriptor List.