VirtualBox

Changeset 98122 in vbox for trunk/include


Ignore:
Timestamp:
Jan 19, 2023 12:03:23 AM (23 months ago)
Author:
vboxsync
Message:

VMM/PDM: Fixed assertion in PDMR3ResumeUsb after attaching a virtual MSD.

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmusb.h

    r98103 r98122  
    240240     * VM Resume notification.
    241241     *
     242     * This is not called when the device is hotplugged device, instead
     243     * pfnHotPlugged will be called.
     244     *
    242245     * @returns VBox status.
    243246     * @param   pUsbIns     The USB device instance data.
     
    260263     * Called after the constructor when attaching a device at run time.
    261264     *
    262      * This can be used to do tasks normally assigned to pfnInitComplete and/or pfnVMPowerOn.
     265     * This can be used to do tasks normally assigned to pfnInitComplete and/or
     266     * pfnVMPowerOn.  There will not be a call to pfnVMResume following this.
    263267     *
    264268     * @returns VBox status.
  • trunk/include/VBox/vmm/vm.h

    r98103 r98122  
    989989 */
    990990#define VMSTATE_IS_RUNNING(a_enmVMState) \
    991     (   (enmVMState) == VMSTATE_RUNNING \
    992      || (enmVMState) == VMSTATE_RUNNING_LS )
     991    (   (a_enmVMState) == VMSTATE_RUNNING \
     992     || (a_enmVMState) == VMSTATE_RUNNING_LS )
    993993
    994994/** @def VM_IS_RUNNING_FOR_ASSERTIONS_ONLY
     
    10001000    (   (pVM)->enmVMState == VMSTATE_RUNNING \
    10011001     || (pVM)->enmVMState == VMSTATE_RUNNING_LS )
     1002
     1003
     1004/** @def VMSTATE_IS_POWERED_ON
     1005 * Checks if the given state indicates the VM is powered on.
     1006 *
     1007 * @note Excludes all error states, so a powered on VM that hit a fatal error,
     1008 *       guru meditation, state load failure or similar will not be considered
     1009 *       powered on by this test.
     1010 */
     1011#define VMSTATE_IS_POWERED_ON(a_enmVMState) \
     1012    ( (a_enmVMState) >= VMSTATE_RESUMING && (a_enmVMState) < VMSTATE_POWERING_OFF )
    10021013
    10031014/** @def VM_ASSERT_IS_NOT_RUNNING
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