VirtualBox

Changeset 75740 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Nov 26, 2018 3:59:11 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126941
Message:

HGCM,VMMDev: Made the HGCM command/message completion callback return a status code so VMMDev can indicate that a guest call was cancelled and the service could implement a way of dealing with that, rather than just dropping information. Ran into this with SIGCHLD delivery interrupting GUEST_MSG_WAIT and dropping crucial HOST_SESSION_CLOSE close messages, causing the host to wait until sometime timed out and probably left stuff/processes behind.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmifs.h

    r75500 r75740  
    20682068     * Notify the guest on a command completion.
    20692069     *
     2070     * @returns VINF_SUCCESS or VERR_CANCELLED if the guest canceled the call.
    20702071     * @param   pInterface          Pointer to this interface.
    20712072     * @param   rc                  The return code (VBox error code).
    20722073     * @param   pCmd                A pointer that identifies the completed command.
    20732074     */
    2074     DECLR3CALLBACKMEMBER(void, pfnCompleted,(PPDMIHGCMPORT pInterface, int32_t rc, PVBOXHGCMCMD pCmd));
     2075    DECLR3CALLBACKMEMBER(int, pfnCompleted,(PPDMIHGCMPORT pInterface, int32_t rc, PVBOXHGCMCMD pCmd));
    20752076
    20762077    /**
     
    20852086} PDMIHGCMPORT;
    20862087/** PDMIHGCMPORT interface ID. */
    2087 # define PDMIHGCMPORT_IID                       "10ca89d3-18ef-44d3-535e-ca46532e3caa"
     2088# define PDMIHGCMPORT_IID                       "e82b1709-c245-4ccc-1611-0e6d50d93cbc"
    20882089
    20892090
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