Revision deb54399 hw/virtio.c

b/hw/virtio.c
830 830
    vdev->vq = qemu_mallocz(sizeof(VirtQueue) * VIRTIO_PCI_QUEUE_MAX);
831 831

  
832 832
    config = pci_dev->config;
833
    config[0x00] = vendor & 0xFF;
834
    config[0x01] = (vendor >> 8) & 0xFF;
835
    config[0x02] = device & 0xFF;
836
    config[0x03] = (device >> 8) & 0xFF;
833
    pci_config_set_vendor_id(config, vendor);
834
    pci_config_set_device_id(config, device);
837 835

  
838 836
    config[0x08] = VIRTIO_PCI_ABI_VERSION;
839 837

  

Also available in: Unified diff