VirtualBox

Changeset 75504 in vbox for trunk/src


Ignore:
Timestamp:
Nov 16, 2018 2:03:43 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126661
Message:

VMMDev/HGCM: Changed hgcmCompleted to call hgcmCompletedWorker directly rather than bothering the EMT with it. Tests with a debug build indicates that this may save quite some time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp

    r75500 r75504  
    12401240DECLCALLBACK(void) hgcmCompleted(PPDMIHGCMPORT pInterface, int32_t result, PVBOXHGCMCMD pCmd)
    12411241{
     1242#if 0 /* This seems to be significantly slower.  Half of MsgTotal time seems to be spend here. */
    12421243    PVMMDEV pThis = RT_FROM_MEMBER(pInterface, VMMDevState, IHGCMPort);
    12431244    STAM_GET_TS(pCmd->tsComplete);
     
    12511252                                   (PFNRT)hgcmCompletedWorker, 3, pInterface, result, pCmd);
    12521253    AssertRC(rc);
     1254#else
     1255    STAM_GET_TS(pCmd->tsComplete);
     1256    VBOXDD_HGCMCALL_COMPLETED_REQ(pCmd, result);
     1257    hgcmCompletedWorker(pInterface, result, pCmd);
     1258#endif
    12531259}
    12541260
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