virtio-9p: use symbolic constant, add to pci-ids.txt
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 13 Dec 2012 09:19:36 +0000 (10:19 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 8 Jan 2013 18:24:34 +0000 (20:24 +0200)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs/specs/pci-ids.txt
hw/9pfs/virtio-9p-device.c
hw/pci/pci.h

index df2527fe4ca7a68591fcc3c363847ef3b51436f7..2d5329af497c7f28e48519e5b452f7d43ea5baae 100644 (file)
@@ -21,6 +21,7 @@ maintained as part of the virtio specification.
 1af4:1003  console device
 1af4:1004  SCSI host bus adapter device
 1af4:1005  entropy generator device
+1af4:1009  9p filesystem device
 
 1af4:10f0  Available for experimental usage without registration.  Must get
    to      official ID when the code leaves the test lab (i.e. when seeking
index 6761bce9dc5b5d52c5ca23c5bde8a553c1807987..f16ccfbed148a1b87cadb36f7b4e3e3c21f871fb 100644 (file)
@@ -170,7 +170,7 @@ static void virtio_9p_class_init(ObjectClass *klass, void *data)
 
     k->init = virtio_9p_init_pci;
     k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET;
-    k->device_id = 0x1009;
+    k->device_id = PCI_DEVICE_ID_VIRTIO_9P;
     k->revision = VIRTIO_PCI_ABI_VERSION;
     k->class_id = 0x2;
     dc->props = virtio_9p_properties;
index 72927e31496a74d2ae4cf2c66479850b06497307..ed098ced6bebc3894af0255f68bb04d092ae12bb 100644 (file)
@@ -77,6 +77,7 @@
 #define PCI_DEVICE_ID_VIRTIO_CONSOLE     0x1003
 #define PCI_DEVICE_ID_VIRTIO_SCSI        0x1004
 #define PCI_DEVICE_ID_VIRTIO_RNG         0x1005
+#define PCI_DEVICE_ID_VIRTIO_9P          0x1009
 
 #define FMT_PCIBUS                      PRIx64