]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit083a275825551500e65425c7e3f007d1f5e71b6e
tree974d179603c1148e36b377d6a8774894f323f06a
parent01536816f30fe630db384f9f9a4ec0bb8082781e
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