nvme: bump PCI revision
authorChristoph Hellwig <hch@lst.de>
Thu, 4 Aug 2016 19:42:15 +0000 (21:42 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 5 Aug 2016 08:56:08 +0000 (10:56 +0200)
The broken Identify implementation in earlier Qemu versions means we
need to blacklist it from issueing the NVMe 1.1 Identify Namespace List
command.  As we want to be able to use it in newer Qemu versions we need
a way to identify those.  Bump the PCI revision as a guest visible
indicator of this bug fix.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/nvme.c

index a0655a382a53758b0abf53a563be928874e38075..cef3bb42f175e4b854e2c84c7522902f4aeac69a 100644 (file)
@@ -954,7 +954,7 @@ static void nvme_class_init(ObjectClass *oc, void *data)
     pc->class_id = PCI_CLASS_STORAGE_EXPRESS;
     pc->vendor_id = PCI_VENDOR_ID_INTEL;
     pc->device_id = 0x5845;
-    pc->revision = 1;
+    pc->revision = 2;
     pc->is_express = 1;
 
     set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);