diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2022-10-04 13:21:00 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2022-10-12 12:01:11 +0200 |
commit | 0468fe82d32e99b6d84085e76d1e946bbe1e80ac (patch) | |
tree | 214015f1a7245405ad2f03630b7392d183486071 /hw | |
parent | 55f01e76a305df90fe6b8f02dbeb88a2d7a04f97 (diff) | |
download | qemu-0468fe82d32e99b6d84085e76d1e946bbe1e80ac.zip qemu-0468fe82d32e99b6d84085e76d1e946bbe1e80ac.tar.gz qemu-0468fe82d32e99b6d84085e76d1e946bbe1e80ac.tar.bz2 |
pci-ids: document modern virtio-pci ids in pci.h too
While being at it add a #define for the magic 0x1040 number.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20221004112100.301935-6-kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/virtio/virtio-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index a50c5a5..e7d8024 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -1688,7 +1688,7 @@ static void virtio_pci_device_plugged(DeviceState *d, Error **errp) pci_set_word(config + PCI_VENDOR_ID, PCI_VENDOR_ID_REDHAT_QUMRANET); pci_set_word(config + PCI_DEVICE_ID, - 0x1040 + virtio_bus_get_vdev_id(bus)); + PCI_DEVICE_ID_VIRTIO_10_BASE + virtio_bus_get_vdev_id(bus)); pci_config_set_revision(config, 1); } config[PCI_INTERRUPT_PIN] = 1; |