Changeset 40718 in vbox for trunk/src/VBox/Devices/VMMDev
- Timestamp:
- Mar 30, 2012 6:31:04 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 77178
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp
r40517 r40718 81 81 bool fCancelled; 82 82 83 /* Whether the command is in the active commands list. */ 84 bool fInList; 85 86 /* Whether the command was saved. */ 87 bool fSaved; 88 83 89 /* GC physical address of the guest request. */ 84 90 RTGCPHYS GCPhys; … … 137 143 138 144 pVMMDevState->pHGCMCmdList = pCmd; 145 146 pCmd->fInList = true; 139 147 140 148 if (enmCmdType != VBOXHGCMCMDTYPE_LOADSTATE) … … 174 182 LogFlowFunc(("%p\n", pCmd)); 175 183 184 if (!pCmd->fInList) 185 { 186 LogFlowFunc(("%p not in the list\n", pCmd)); 187 vmmdevHGCMCmdListUnlock (pVMMDevState); 188 return VINF_SUCCESS; 189 } 190 176 191 if (pCmd->pNext) 177 192 { … … 191 206 pVMMDevState->pHGCMCmdList = pCmd->pNext; 192 207 } 208 209 pCmd->pNext = NULL; 210 pCmd->pPrev = NULL; 211 pCmd->fInList = false; 193 212 194 213 vmmdevHGCMCmdListUnlock (pVMMDevState); … … 1774 1793 vmmdevHGCMRemoveCommand (pVMMDevState, pCmd); 1775 1794 1776 if (pCmd->fCancelled )1777 { 1778 LogFlowFunc(("A cancelled command %p \n", pCmd));1795 if (pCmd->fCancelled || pCmd->fSaved) 1796 { 1797 LogFlowFunc(("A cancelled command %p: %d %d\n", pCmd, pCmd->fCancelled, pCmd->fSaved)); 1779 1798 } 1780 1799 else … … 2308 2327 AssertRCReturn(rc, rc); 2309 2328 2329 /* Mark the command as saved to make sure that it will not be 2330 * completed later by a still running host service. 2331 */ 2332 pIter->fSaved = true; 2310 2333 vmmdevHGCMRemoveCommand (pVMMDevState, pIter); 2311 2334
Note:
See TracChangeset
for help on using the changeset viewer.