VirtualBox

Changeset 24925 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 24, 2009 10:59:37 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55211
Message:

2d video: fix VM reset issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r24779 r24925  
    10451045}
    10461046
     1047static DECLCALLBACK(void) vbvaVHWAHHCommandSetEventCallback(void * pContext)
     1048{
     1049    RTSemEventSignal((RTSEMEVENT)pContext);
     1050}
     1051
    10471052static int vbvaVHWAHHCommandPost(PVGASTATE pVGAState, VBOXVHWACMD* pCmd)
    10481053{
     
    10541059        /* ensure the cmd is not deleted until we process it */
    10551060        vbvaVHWAHHCommandRetain (pCmd);
    1056         pCmd->GuestVBVAReserved1 = (uint64_t)hComplEvent;
     1061        VBOXVHWA_HH_CALLBACK_SET(pCmd, vbvaVHWAHHCommandSetEventCallback, (void*)hComplEvent);
    10571062        vbvaVHWAHandleCommand(pVGAState, NULL, pCmd);
    10581063        if((ASMAtomicReadU32((volatile uint32_t *)&pCmd->Flags)  & VBOXVHWACMD_FLAG_HG_ASYNCH) != 0)
     
    12491254    else
    12501255    {
    1251         if(pCmd->GuestVBVAReserved1)
    1252         {
    1253             RTSEMEVENT hComplEvent = (RTSEMEVENT)pCmd->GuestVBVAReserved1;
    1254             RTSemEventSignal(hComplEvent);
     1256        PFNVBOXVHWA_HH_CALLBACK pfn = VBOXVHWA_HH_CALLBACK_GET(pCmd);
     1257        if(pfn)
     1258        {
     1259            pfn(VBOXVHWA_HH_CALLBACK_GET_ARG(pCmd));
    12551260        }
    12561261        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