VirtualBox

Changeset 33314 in vbox for trunk/src/VBox/Devices/VirtIO


Ignore:
Timestamp:
Oct 21, 2010 3:51:17 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66890
Message:

PCI, PDM: MSI-X support (absolutely untested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/Virtio.cpp

    r29917 r33314  
    782782    /* Interrupt Pin: INTA# */
    783783    vpciCfgSetU8( pci, VBOX_PCI_INTERRUPT_PIN,        0x01);
     784
     785#ifdef VBOX_WITH_MSI_DEVICES
     786    PCIDevSetCapabilityList     (&pci, 0x80);
     787    PCIDevSetStatus             (&pci, VBOX_PCI_STATUS_CAP_LIST);
     788#endif
    784789}
    785790
     
    825830    if (RT_FAILURE(rc))
    826831        return rc;
     832
     833#ifdef VBOX_WITH_MSI_DEVICES
     834#if 0
     835    {
     836        PDMMSIREG aMsiReg;
     837
     838        RT_ZERO(aMsiReg);
     839        aMsiReg.cMsixVectors = 1;
     840        aMsiReg.iMsixCapOffset = 0x80;
     841        aMsiReg.iMsixNextOffset = 0x0;
     842        aMsiReg.iMsixBar = 0;
     843        rc = PDMDevHlpPCIRegisterMsi(pDevIns, &aMsiReg);
     844        if (RT_FAILURE (rc))
     845            PCIDevSetCapabilityList(&pState->pciDevice, 0x0);
     846    }
     847#endif
     848#endif
    827849
    828850    /* Status driver */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette