VirtualBox

Changeset 36260 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Mar 11, 2011 12:57:35 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70522
Message:

PCI: lifetime work, fixed issues with multiple PCI devices attached to one guest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r36130 r36260  
    506506
    507507    /* Now actually add devices */
     508    PCFGMNODE pPciDevs = NULL;
     509
     510    if (assignments.size() > 0)
     511        InsertConfigNode(pDevices,     "pciraw",  &pPciDevs);
     512
    508513    for (size_t iDev = 0; iDev < assignments.size(); iDev++)
    509514    {
     
    517522        assignment->COMGETTER(Name)(aDevName.asOutParam());
    518523
    519         InsertConfigNode(pDevices,     "pciraw",  &pDev);
    520         InsertConfigNode(pDev,          Utf8StrFmt("%d", iDev).c_str(), &pInst);
    521         InsertConfigInteger(pInst,     "Trusted", 1);
     524        InsertConfigNode(pPciDevs, Utf8StrFmt("%d", iDev).c_str(), &pInst);
     525        InsertConfigInteger(pInst, "Trusted", 1);
    522526
    523527        HostPciAddress.fromLong(host);
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