nvme-pci: disable namespace identifiers for Qemu controllers
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Apr 2022 05:07:56 +0000 (07:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:56:17 +0000 (06:56 +0200)
commit66dd346b84d79fde20832ed691a54f4881eac20d
tree974d179603c1148e36b377d6a8774894f323f06a
parenta98a945b80f8684121d477ae68ebc01da953da1f
nvme-pci: disable namespace identifiers for Qemu controllers

Qemu unconditionally reports a UUID, which depending on the qemu version
is either all-null (which is incorrect but harmless) or contains a single
bit set for all controllers.  In addition it can also optionally report
a eui64 which needs to be manually set.  Disable namespace identifiers
for Qemu controlles entirely even if in some cases they could be set
correctly through manual intervention.

Reported-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/pci.c