VirtualBox

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


Ignore:
Timestamp:
Oct 30, 2009 2:11:59 PM (15 years ago)
Author:
vboxsync
Message:

Main,Misc Devices: _LS VMSTATEs.

Location:
trunk/src/VBox/Devices
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r24039 r24191  
    40604060    ASMAtomicXchgBool(&pState->fMaybeOutOfSpace, true);
    40614061    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))
    40634065    {
    40644066        int rc2 = e1kCanReceive(pState);
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r23968 r24191  
    18441844     * Drop packets if the VM is not running yet/anymore.
    18451845     */
    1846     if (PDMDevHlpVMState(pDevIns) != VMSTATE_RUNNING)
     1846    VMSTATE enmVMState = PDMDevHlpVMState(pDevIns);
     1847    if (    enmVMState != VMSTATE_RUNNING
     1848        &&  enmVMState != VMSTATE_RUNNING_LS)
    18471849        return;
    18481850
     
    45484550    ASMAtomicXchgBool(&pThis->fMaybeOutOfSpace, true);
    45494551    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))
    45514555    {
    45524556        int rc2 = pcnetCanReceive(pThis);
  • trunk/src/VBox/Devices/Network/DevVirtioNet.cpp

    r24120 r24191  
    920920              pState->pQueues[i].uNextUsedIndex,
    921921              pState->pQueues[i].uPageNumber));
    922              
     922
    923923}
    924924#else
     
    14921492    ASMAtomicXchgBool(&pState->fMaybeOutOfSpace, true);
    14931493    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))
    14951498    {
    14961499        int rc2 = vnetCanReceive(pState);
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r24076 r24191  
    250250     * Drop notifications if the VM is not running yet/anymore.
    251251     */
    252     if (PDMDevHlpVMState(pDevIns) != VMSTATE_RUNNING)
     252    VMSTATE enmVMState = PDMDevHlpVMState(pDevIns);
     253    if (    enmVMState != VMSTATE_RUNNING
     254        &&  enmVMState != VMSTATE_RUNNING_LS)
    253255        return;
    254256
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