VirtualBox

Changeset 75875 in vbox


Ignore:
Timestamp:
Dec 2, 2018 5:04:57 PM (6 years ago)
Author:
vboxsync
Message:

GuestControl,VMMDev: Fixed VERR_VM_RESTORED scenario. VMMDev didn't signal interrupts during restore and the service returned a truncated VMMDevSessionId value. bugref:9313

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r75853 r75875  
    360360     */
    361361    VMSTATE enmVMState = PDMDevHlpVMState(pThis->pDevInsR3);
    362 /** @todo r=bird: Shouldn't there be more states here?  Wouldn't we drop
    363  *        notifications now when we're in the process of suspending or
    364  *        similar? */
    365362    if (   enmVMState == VMSTATE_RUNNING
    366         || enmVMState == VMSTATE_RUNNING_LS)
     363        || enmVMState == VMSTATE_RUNNING_LS
     364        || enmVMState == VMSTATE_LOADING
     365        || enmVMState == VMSTATE_RESUMING
     366        || enmVMState == VMSTATE_SUSPENDING
     367        || enmVMState == VMSTATE_SUSPENDING_LS
     368        || enmVMState == VMSTATE_SUSPENDING_EXT_LS
     369        || enmVMState == VMSTATE_DEBUGGING
     370        || enmVMState == VMSTATE_DEBUGGING_LS
     371       )
    367372    {
    368373        PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED);
     
    370375        PDMCritSectLeave(&pThis->CritSect);
    371376    }
     377    else
     378        LogRel(("VMMDevNotifyGuest: fAddEvents=%#x ignored because enmVMState=%d\n", fAddEvents, enmVMState));
    372379}
    373380
  • trunk/src/VBox/HostServices/GuestControl/service.cpp

    r75874 r75875  
    11851185        if (idRestoreCheck != idRestore)
    11861186        {
    1187             paParms[0].u.uint32 = idRestore;
     1187            paParms[0].u.uint64 = idRestore;
    11881188            LogFlowFunc(("[Client %RU32] GUEST_MSG_PEEK_XXXX -> VERR_VM_RESTORED (%#RX64 -> %#RX64)\n",
    11891189                         pClient->m_idClient, idRestoreCheck, idRestore));
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