Re: [PATCH 4/4] nvme: check that EUI/GUID/UUID are globally unique

Christoph Hellwig
2022-04-08T16:11:04Z

On Fri, Apr 08, 2022 at 09:19:04AM +0200, Klaus Jensen wrote:
> Odd indeed. With “legacy/single namespace” setup (drive parameter directly on the nvme device), the uuid, eui64 and nguid should be zeroed.
>
> Using the new -device nvme-ns, QEMU will randomize the uuid. However the eui64 will be more static and only differ with the namespace id so it will not be unique across subsystems (this needs fixing in QEMU).

Well, if that is the case we'll need to quirk the affeced qemu versions
as duplicate global ids must not happen. Can you help to come up
with a heuristic to catch to affected versions?