Revision 9dbcca5a

b/hw/pc_piix.c
225 225
    .desc = "Standard PC",
226 226
    .init = pc_init_pci,
227 227
    .max_cpus = 255,
228
    .compat_props = (GlobalProperty[]) {
229
        {
230
            .driver   = "virtio-9p-pci",
231
            .property = "vectors",
232
            .value    = stringify(0),
233
        },
234
        { /* end of list */ }
235
    },
228 236
};
229 237

  
230 238
static QEMUMachine pc_machine_v0_12 = {
b/hw/virtio-pci.c
684 684
    VirtIODevice *vdev;
685 685

  
686 686
    vdev = virtio_9p_init(&pci_dev->qdev, &proxy->fsconf);
687
    vdev->nvectors = proxy->nvectors;
687 688
    virtio_init_pci(proxy, vdev,
688 689
                    PCI_VENDOR_ID_REDHAT_QUMRANET,
689 690
                    0x1009,
690 691
                    0x2,
691 692
                    0x00);
692

  
693
    /* make the actual value visible */
694
    proxy->nvectors = vdev->nvectors;
693 695
    return 0;
694 696
}
695 697
#endif
......
758 760
        .qdev.size = sizeof(VirtIOPCIProxy),
759 761
        .init      = virtio_9p_init_pci,
760 762
        .qdev.props = (Property[]) {
763
            DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2),
761 764
            DEFINE_VIRTIO_COMMON_FEATURES(VirtIOPCIProxy, host_features),
762 765
            DEFINE_PROP_STRING("mount_tag", VirtIOPCIProxy, fsconf.tag),
763 766
            DEFINE_PROP_STRING("fsdev", VirtIOPCIProxy, fsconf.fsdev_id),

Also available in: Unified diff