VirtualBox

Ignore:
Timestamp:
Apr 26, 2010 4:12:49 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60646
Message:

Main: Introduce a per controller setting to switch to the unbuffered async I/O interface (UseNewIo). Configurable through VBoxManage, default is still buffered

File:
1 edited

Legend:

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

    r28727 r28764  
    10731073        rc = ctrls[i]->COMGETTER(Instance)(&ulInstance);                                        H();
    10741074
     1075        IoBackendType_T enmIoBackend;
     1076        rc = ctrls[i]->COMGETTER(IoBackend)(&enmIoBackend);                                     H();
     1077
    10751078        /* /Devices/<ctrldev>/ */
    10761079        const char *pszCtrlDev = pConsole->convertControllerTypeToDev(enmCtrlType);
     
    12611264        {
    12621265            rc = Console::configMediumAttachment(pCtlInst, pszCtrlDev,
    1263                                                  ulInstance, enmBus, atts[j],
     1266                                                 ulInstance, enmBus, enmIoBackend,
     1267                                                 atts[j],
    12641268                                                 pConsole->mMachineState,
    12651269                                                 NULL /* phrc */,
     
    22702274int Console::configMediumAttachment(PCFGMNODE pCtlInst, const char *pcszDevice,
    22712275                                    unsigned uInstance, StorageBus_T enmBus,
     2276                                    IoBackendType_T enmIoBackend,
    22722277                                    IMediumAttachment *pMediumAtt,
    22732278                                    MachineState_T aMachineState,
     
    23522357    hrc = pMediumAtt->COMGETTER(Passthrough)(&fPassthrough);            H();
    23532358    rc = Console::configMedium(pLunL0, !!fPassthrough, lType,
     2359                               enmIoBackend,
    23542360                               pMedium, aMachineState, phrc);           RC_CHECK();
    23552361
     
    23782384                          bool fPassthrough,
    23792385                          DeviceType_T enmType,
     2386                          IoBackendType_T enmIoBackend,
    23802387                          IMedium *pMedium,
    23812388                          MachineState_T aMachineState,
     
    24752482            {
    24762483                rc = CFGMR3InsertInteger(pCfg, "TempReadOnly", 1);                      RC_CHECK();
     2484            }
     2485
     2486            if (enmIoBackend == IoBackendType_Unbuffered)
     2487            {
     2488                rc = CFGMR3InsertInteger(pCfg, "UseNewIo", 1);                          RC_CHECK();
    24772489            }
    24782490
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