VirtualBox

Ignore:
Timestamp:
Jun 12, 2008 2:48:02 PM (16 years ago)
Author:
vboxsync
Message:

Implemented cancelling of HGCM requests from the guest.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp

    r8155 r9662  
    249249                     * that means the wait was interrrupted. That can happen
    250250                     * if system reboots or the VBoxService ended abnormally.
    251                      * In both cases it is OK to just leave the allocated memory
    252                      * in the physical heap. The memory leak does not affect normal
    253                      * operations.
    254                      * @todo VbglGRCancel (&pHGCMCall->header.header) need to be implemented.
    255                      *       The host will not write to the cancelled memory.
     251                     *
     252                     * Cancel the request, the host will not write to the
     253                     * memory related to the cancelled request.
    256254                     */
    257255                    pHGCMCall->header.fu32Flags |= VBOX_HGCM_REQ_CANCELLED;
     256
     257                    pHGCMCall->header.header.requestType = VMMDevReq_HGCMCancel;
     258                    VbglGRPerform (&pHGCMCall->header.header);
    258259                }
    259260            }
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