Changeset 24191 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Oct 30, 2009 2:11:59 PM (15 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r24039 r24191 4060 4060 ASMAtomicXchgBool(&pState->fMaybeOutOfSpace, true); 4061 4061 STAM_PROFILE_START(&pState->StatRxOverflow, a); 4062 while (RT_LIKELY(PDMDevHlpVMState(pState->CTX_SUFF(pDevIns)) == VMSTATE_RUNNING)) 4062 VMSTATE enmVMState; 4063 while (RT_LIKELY( (enmVMState = PDMDevHlpVMState(pState->CTX_SUFF(pDevIns))) == VMSTATE_RUNNING 4064 || enmVMState == VMSTATE_RUNNING_LS)) 4063 4065 { 4064 4066 int rc2 = e1kCanReceive(pState); -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r23968 r24191 1844 1844 * Drop packets if the VM is not running yet/anymore. 1845 1845 */ 1846 if (PDMDevHlpVMState(pDevIns) != VMSTATE_RUNNING) 1846 VMSTATE enmVMState = PDMDevHlpVMState(pDevIns); 1847 if ( enmVMState != VMSTATE_RUNNING 1848 && enmVMState != VMSTATE_RUNNING_LS) 1847 1849 return; 1848 1850 … … 4548 4550 ASMAtomicXchgBool(&pThis->fMaybeOutOfSpace, true); 4549 4551 STAM_PROFILE_START(&pThis->StatRxOverflow, a); 4550 while (RT_LIKELY(PDMDevHlpVMState(pThis->CTX_SUFF(pDevIns)) == VMSTATE_RUNNING)) 4552 VMSTATE enmVMState; 4553 while (RT_LIKELY( (enmVMState = PDMDevHlpVMState(pThis->CTX_SUFF(pDevIns))) == VMSTATE_RUNNING 4554 || enmVMState == VMSTATE_RUNNING_LS)) 4551 4555 { 4552 4556 int rc2 = pcnetCanReceive(pThis); -
trunk/src/VBox/Devices/Network/DevVirtioNet.cpp
r24120 r24191 920 920 pState->pQueues[i].uNextUsedIndex, 921 921 pState->pQueues[i].uPageNumber)); 922 922 923 923 } 924 924 #else … … 1492 1492 ASMAtomicXchgBool(&pState->fMaybeOutOfSpace, true); 1493 1493 STAM_PROFILE_START(&pState->StatRxOverflow, a); 1494 while (RT_LIKELY(PDMDevHlpVMState(pState->VPCI.CTX_SUFF(pDevIns)) == VMSTATE_RUNNING)) 1494 1495 VMSTATE enmVMState; 1496 while (RT_LIKELY( (enmVMState = PDMDevHlpVMState(pState->VPCI.CTX_SUFF(pDevIns))) == VMSTATE_RUNNING 1497 || enmVMState == VMSTATE_RUNNING_LS)) 1495 1498 { 1496 1499 int rc2 = vnetCanReceive(pState); -
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r24076 r24191 250 250 * Drop notifications if the VM is not running yet/anymore. 251 251 */ 252 if (PDMDevHlpVMState(pDevIns) != VMSTATE_RUNNING) 252 VMSTATE enmVMState = PDMDevHlpVMState(pDevIns); 253 if ( enmVMState != VMSTATE_RUNNING 254 && enmVMState != VMSTATE_RUNNING_LS) 253 255 return; 254 256
Note:
See TracChangeset
for help on using the changeset viewer.