Commit a7c4996b1fd05b4d74758810d0bf0987f22e8712

Authored by aliguori
1 parent 36bee1e3

Use macros for virtio-net PCI vendor/device IDs (Mark McLoughlin)

Gerd added these macros a while back.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6438 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 1 deletions
hw/virtio-net.c
... ... @@ -320,7 +320,9 @@ void virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn)
320 320 VirtIONet *n;
321 321 static int virtio_net_id;
322 322  
323   - n = (VirtIONet *)virtio_init_pci(bus, "virtio-net", 6900, 0x1000,
  323 + n = (VirtIONet *)virtio_init_pci(bus, "virtio-net",
  324 + PCI_VENDOR_ID_REDHAT_QUMRANET,
  325 + PCI_DEVICE_ID_VIRTIO_NET,
324 326 0, VIRTIO_ID_NET,
325 327 0x02, 0x00, 0x00,
326 328 sizeof(struct virtio_net_config),
... ...