Skip to content

Commit

Permalink
virtio-9p: use symbolic constant, add to pci-ids.txt
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
bonzini authored and mstsirkin committed Jan 8, 2013
1 parent 4ea9296 commit 13744bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/specs/pci-ids.txt
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion hw/9pfs/virtio-9p-device.c
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions hw/pci/pci.h
Expand Up @@ -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

Expand Down

0 comments on commit 13744bd

Please sign in to comment.