Skip to content

Commit

Permalink
nvme: bump PCI revision
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and kevmw committed Aug 5, 2016
1 parent 03035a2 commit 47989f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/block/nvme.c
Expand Up @@ -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);
Expand Down

0 comments on commit 47989f1

Please sign in to comment.