Changeset 44780 in vbox for trunk/src/VBox/Devices/VMMDev
- Timestamp:
- Feb 21, 2013 1:48:30 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 83892
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r44778 r44780 267 267 return; 268 268 269 PDMCritSectEnter(&pThis->CritSect, VERR_ SEM_BUSY);269 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 270 270 vmmdevNotifyGuestWorker(pThis, fAddEvents); 271 271 PDMCritSectLeave(&pThis->CritSect); … … 288 288 void VMMDevCtlSetGuestFilterMask(PVMMDEV pThis, uint32_t fOrMask, uint32_t fNotMask) 289 289 { 290 PDMCritSectEnter(&pThis->CritSect, VERR_ SEM_BUSY);290 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 291 291 292 292 const bool fHadEvents = (pThis->u32HostEventFlags & pThis->u32GuestFilterMask) != 0; … … 2800 2800 { 2801 2801 PVMMDEV pThis = RT_FROM_MEMBER(pInterface, VMMDEV, IPort); 2802 PDMCritSectEnter(&pThis->CritSect, VERR_ SEM_BUSY);2802 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 2803 2803 2804 2804 if ( pThis->mouseXAbs != xAbs … … 2834 2834 { 2835 2835 PVMMDEV pThis = RT_FROM_MEMBER(pInterface, VMMDEV, IPort); 2836 PDMCritSectEnter(&pThis->CritSect, VERR_ SEM_BUSY);2836 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 2837 2837 2838 2838 uint32_t fOldCaps = pThis->mouseCapabilities; … … 2863 2863 return VERR_INVALID_PARAMETER; 2864 2864 2865 PDMCritSectEnter(&pThis->CritSect, VERR_ SEM_BUSY);2865 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 2866 2866 2867 2867 DISPLAYCHANGEREQUEST *pRequest = &pThis->displayChangeData.aRequests[idxDisplay]; … … 2920 2920 { 2921 2921 PVMMDEV pThis = RT_FROM_MEMBER(pInterface, VMMDEV, IPort); 2922 PDMCritSectEnter(&pThis->CritSect, VERR_ SEM_BUSY);2922 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 2923 2923 2924 2924 /* Verify that the new resolution is different and that guest does not yet know about it. */ … … 2946 2946 { 2947 2947 PVMMDEV pThis = RT_FROM_MEMBER(pInterface, VMMDEV, IPort); 2948 PDMCritSectEnter(&pThis->CritSect, VERR_ SEM_BUSY);2948 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 2949 2949 2950 2950 /* Verify that the new resolution is different and that guest does not yet know about it. */ … … 2969 2969 { 2970 2970 PVMMDEV pThis = RT_FROM_MEMBER(pInterface, VMMDEV, IPort); 2971 PDMCritSectEnter(&pThis->CritSect, VERR_ SEM_BUSY);2971 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 2972 2972 2973 2973 bool fSame = (pThis->fVRDPEnabled == fVRDPEnabled); … … 2993 2993 { 2994 2994 PVMMDEV pThis = RT_FROM_MEMBER(pInterface, VMMDEV, IPort); 2995 PDMCritSectEnter(&pThis->CritSect, VERR_ SEM_BUSY);2995 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 2996 2996 2997 2997 /* Verify that the new resolution is different and that guest does not yet know about it. */ … … 3022 3022 AssertReturn(fFlags & (VMMDEV_SETCREDENTIALS_GUESTLOGON | VMMDEV_SETCREDENTIALS_JUDGE), VERR_INVALID_PARAMETER); 3023 3023 3024 PDMCritSectEnter(&pThis->CritSect, VERR_ SEM_BUSY);3024 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 3025 3025 3026 3026 /* … … 3077 3077 Log(("vmmdevIPort_CpuHotUnplug: idCpuCore=%u idCpuPackage=%u\n", idCpuCore, idCpuPackage)); 3078 3078 3079 PDMCritSectEnter(&pThis->CritSect, VERR_ SEM_BUSY);3079 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 3080 3080 3081 3081 if (pThis->fCpuHotPlugEventsEnabled) … … 3103 3103 Log(("vmmdevCpuPlug: idCpuCore=%u idCpuPackage=%u\n", idCpuCore, idCpuPackage)); 3104 3104 3105 PDMCritSectEnter(&pThis->CritSect, VERR_ SEM_BUSY);3105 PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED); 3106 3106 3107 3107 if (pThis->fCpuHotPlugEventsEnabled) … … 3693 3693 3694 3694 /* 3695 * Create the critical section for the device. 3695 * We do our own locking entirely. So, install NOP critsect for the device 3696 * and create our own critsect for use where it really matters (++). 3696 3697 */ 3698 rc = PDMDevHlpSetDeviceCritSect(pDevIns, PDMDevHlpCritSectGetNop(pDevIns)); 3699 AssertRCReturn(rc, rc); 3697 3700 rc = PDMDevHlpCritSectInit(pDevIns, &pThis->CritSect, RT_SRC_POS, "VMMDev#%u", iInstance); 3698 3701 AssertRCReturn(rc, rc); 3699 /* Later: pDevIns->pCritSectR3 = &pThis->CritSect; */3700 3702 3701 3703 /*
Note:
See TracChangeset
for help on using the changeset viewer.