Revision 7aff0f21 hw/ivshmem.c

b/hw/ivshmem.c
706 706
    }
707 707

  
708 708
    pci_conf = s->dev.config;
709
    pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_REDHAT_QUMRANET);
710
    pci_conf[0x02] = 0x10;
711
    pci_conf[0x03] = 0x11;
712 709
    pci_conf[PCI_COMMAND] = PCI_COMMAND_IO | PCI_COMMAND_MEMORY;
713
    pci_config_set_class(pci_conf, PCI_CLASS_MEMORY_RAM);
714
    pci_conf[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL;
715 710

  
716 711
    pci_config_set_interrupt_pin(pci_conf, 1);
717 712

  
......
809 804
    .qdev.reset = ivshmem_reset,
810 805
    .init       = pci_ivshmem_init,
811 806
    .exit       = pci_ivshmem_uninit,
807
    .vendor_id  = PCI_VENDOR_ID_REDHAT_QUMRANET,
808
    .device_id  = 0x1110,
809
    .class_id   = PCI_CLASS_MEMORY_RAM,
812 810
    .qdev.props = (Property[]) {
813 811
        DEFINE_PROP_CHR("chardev", IVShmemState, server_chr),
814 812
        DEFINE_PROP_STRING("size", IVShmemState, sizearg),

Also available in: Unified diff