VirtualBox

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


Ignore:
Timestamp:
Jul 6, 2011 10:24:07 AM (14 years ago)
Author:
vboxsync
Message:

more PCI passthrough fixes

File:
1 edited

Legend:

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

    r37781 r37794  
    462462{
    463463    HRESULT hrc = S_OK;
    464     PCFGMNODE pInst, pCfg, pLunL0;
     464    PCFGMNODE pInst, pCfg, pLunL0, pLunL1;
    465465
    466466    SafeIfaceArray<IPciDeviceAttachment> assignments;
     
    561561        InsertConfigInteger(pCfg,      "GuestPCIFunctionNo", GuestPciAddress.miFn);
    562562
     563        /* the driver */
     564        InsertConfigNode(pInst,        "LUN#0",   &pLunL0);
     565        InsertConfigString(pLunL0,     "Driver", "pciraw");
     566        InsertConfigNode(pLunL0,       "AttachedDriver", &pLunL1);
     567
    563568        /* the Main driver */
     569        InsertConfigString(pLunL1,     "Driver", "MainPciRaw");
     570        InsertConfigNode(pLunL1,       "Config", &pCfg);
    564571        PciRawDev* pMainDev = new PciRawDev(pConsole);
    565         InsertConfigNode(pInst,        "LUN#0",   &pLunL0);
    566         InsertConfigString(pLunL0,     "Driver",  "pciraw");
    567         InsertConfigNode(pLunL0,       "Config" , &pCfg);
    568572        InsertConfigInteger(pCfg,      "Object", (uintptr_t)pMainDev);
    569573    }
Note: See TracChangeset for help on using the changeset viewer.

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