VirtualBox

Changeset 48890 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Oct 4, 2013 3:32:56 PM (11 years ago)
Author:
vboxsync
Message:

PDM: init fVMSuspended for USB devices and a todo.

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMDriver.cpp

    r46788 r48890  
    703703                    pNew->Internal.s.pVMRC          = pDrv->pReg->fFlags & PDM_DRVREG_FLAGS_RC ? pVM->pVMRC : NIL_RTRCPTR;
    704704                    //pNew->Internal.s.fDetaching     = false;
    705                     pNew->Internal.s.fVMSuspended   = true;
     705                    pNew->Internal.s.fVMSuspended   = true; /** @todo: should be 'false', if driver is attached at runtime. */
    706706                    //pNew->Internal.s.fVMReset       = false;
    707707                    pNew->Internal.s.fHyperHeap     = fHyperHeap;
  • trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp

    r48406 r48890  
    571571    //pUsbIns->Internal.s.pHub                = NULL;
    572572    pUsbIns->Internal.s.iPort               = UINT32_MAX; /* to be determined. */
    573     pUsbIns->Internal.s.fVMSuspended        = true;
     573    /* Set the flag accordingly.
     574     * Oherwise VMPowerOff, VMSuspend will not be called for devices attached at runtime.
     575     */
     576    pUsbIns->Internal.s.fVMSuspended        = !fAtRuntime;
    574577    //pUsbIns->Internal.s.pfnAsyncNotify      = NULL;
    575578    pUsbIns->pHlpR3                         = &g_pdmR3UsbHlp;
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