aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-08-04 21:42:15 +0200
committerKevin Wolf <kwolf@redhat.com>2016-08-05 10:56:08 +0200
commit47989f14472262a289894058f7babf1db37edda5 (patch)
tree2825b93de3de1679e10e914f2cca8d1ac53d7c16
parent03035a23a3c5be010e1242be2bca721d5bb600b4 (diff)
downloadqemu-47989f14472262a289894058f7babf1db37edda5.zip
qemu-47989f14472262a289894058f7babf1db37edda5.tar.gz
qemu-47989f14472262a289894058f7babf1db37edda5.tar.bz2
nvme: bump PCI revision
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>
-rw-r--r--hw/block/nvme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index a0655a3..cef3bb4 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -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);