VirtualBox

Changeset 12083 in vbox for trunk/src/VBox/Devices/VMMDev


Ignore:
Timestamp:
Sep 4, 2008 11:28:59 AM (16 years ago)
Author:
vboxsync
Message:

Do not wait for a guest event notification request.

File:
1 edited

Legend:

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

    r11820 r12083  
    262262    PVM pVM = PDMDevHlpGetVM(pDevIns);
    263263    int rc;
    264     PVMREQ pReq;
    265264
    266265    Log3(("VMMDevNotifyGuest: u32EventMask = 0x%08X.\n", u32EventMask));
    267266
    268     rc = VMR3ReqCallVoid (pVM, &pReq, RT_INDEFINITE_WAIT,
    269                           (PFNRT) vmmdevNotifyGuest_EMT,
    270                           2, pVMMDevState, u32EventMask);
    271     AssertReleaseRC (rc);
    272     VMR3ReqFree (pReq);
     267    /* No need to wait for the completion of this request. It is a notification
     268     * about something, which has already happened.
     269     */
     270    rc = VMR3ReqCallEx(pVM, NULL, 0, VMREQFLAGS_NO_WAIT | VMREQFLAGS_VOID,
     271                       (PFNRT) vmmdevNotifyGuest_EMT,
     272                       2, pVMMDevState, u32EventMask);
     273    AssertRC(rc);
    273274}
    274275
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