VirtualBox

Changeset 75798 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Nov 28, 2018 11:47:11 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
127001
Message:

VBoxGuestControl: Optimizing message handling - part 1. bugref:9313

Location:
trunk/src/VBox/Additions/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp

    r75758 r75798  
    366366
    367367
    368 /**
    369  * Disables a previously set message filter.
    370  *
    371  * @return  IPRT status code.
    372  * @param   uClientId       The client ID returned by VbglR3GuestCtrlConnect().
    373  */
    374 VBGLR3DECL(int) VbglR3GuestCtrlMsgFilterUnset(uint32_t uClientId)
    375 {
    376     /* Tell the host we want to unset the filter. */
    377     HGCMMsgCmdFilterUnset Msg;
    378     VBGL_HGCM_HDR_INIT(&Msg.hdr, uClientId, GUEST_MSG_FILTER_UNSET, 1);
    379     VbglHGCMParmUInt32Set(&Msg.flags, 0 /* Flags, unused */);
    380 
    381     return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
    382 }
    383 
    384 
    385368VBGLR3DECL(int) VbglR3GuestCtrlMsgReply(PVBGLR3GUESTCTRLCMDCTX pCtx,
    386369                                        int rc)
     
    416399 * @param   uClientId       The client ID returned by VbglR3GuestCtrlConnect().
    417400 */
    418 VBGLR3DECL(int) VbglR3GuestCtrlMsgSkip(uint32_t uClientId)
     401VBGLR3DECL(int) VbglR3GuestCtrlMsgSkipOld(uint32_t uClientId)
    419402{
    420403    HGCMMsgCmdSkip Msg;
    421404
    422405    /* Tell the host we want to skip the current assigned command. */
    423     VBGL_HGCM_HDR_INIT(&Msg.hdr, uClientId, GUEST_MSG_SKIP, 1);
     406    VBGL_HGCM_HDR_INIT(&Msg.hdr, uClientId, GUEST_MSG_SKIP_OLD, 1);
    424407    VbglHGCMParmUInt32Set(&Msg.flags, 0 /* Flags, unused */);
    425408    return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
     
    436419{
    437420    HGCMMsgCancelPendingWaits Msg;
    438     VBGL_HGCM_HDR_INIT(&Msg.hdr, uClientId, GUEST_CANCEL_PENDING_WAITS, 0);
     421    VBGL_HGCM_HDR_INIT(&Msg.hdr, uClientId, GUEST_MSG_CANCEL, 0);
    439422    return VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
    440423}
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp

    r75758 r75798  
    361361                         * skip all not wanted messages here.
    362362                         */
    363                         rc = VbglR3GuestCtrlMsgSkip(g_uControlSvcClientID);
     363                        rc = VbglR3GuestCtrlMsgSkipOld(g_uControlSvcClientID);
    364364                        VGSvcVerbose(3, "Skipping uMsg=%RU32, cParms=%RU32, rc=%Rrc\n", uMsg, cParms, rc);
    365365                    }
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r75758 r75798  
    10671067        VGSvcVerbose(3, "Unsupported message (uMsg=%RU32, cParms=%RU32) from host, skipping\n", uMsg, pHostCtx->uNumParms);
    10681068
    1069         /** @todo r=bird: Why on earth couldn't you make GUEST_MSG_SKIP do this hacky stuff?!?
    1070          * You don't even know if you're replying to a message ment for you (see masking race further down).  */
    1071 
    10721069        /*
    10731070         * !!! HACK ALERT BEGIN !!!
     
    11031100
    11041101        /* Tell the host service to skip the message. */
    1105         VbglR3GuestCtrlMsgSkip(pHostCtx->uClientID);
     1102        VbglR3GuestCtrlMsgSkipOld(pHostCtx->uClientID);
    11061103
    11071104        rc = VINF_SUCCESS;
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