VirtualBox

Changeset 48528 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Sep 18, 2013 8:39:01 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89057
Message:

Change implementation for turning a reset into a power off to prevent the VM from executing while the power down thread is not running

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

Legend:

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

    r46788 r48528  
    484484VMMR3DECL(int)              VMR3HotPlugCpu(PUVM pUVM, VMCPUID idCpu);
    485485VMMR3DECL(int)              VMR3SetCpuExecutionCap(PUVM pUVM, uint32_t uCpuExecutionCap);
     486VMMR3DECL(int)              VMR3SetPowerOffInsteadOfReset(PUVM pUVM, bool fPowerOffInsteadOfReset);
    486487/** @} */
    487488#endif /* IN_RING3 */
  • trunk/include/VBox/vmm/vmm.h

    r48230 r48528  
    222222    DECLR3CALLBACKMEMBER(void, pfnNotifyPdmtTerm,(PCVMM2USERMETHODS pThis, PUVM pUVM));
    223223
     224    /**
     225     * Notification callback that that a VM reset will be turned into a power off.
     226     *
     227     * @param   pThis       Pointer to the callback method table.
     228     * @param   pUVM        The user mode VM handle.
     229     *
     230     * @remarks This is optional and shall be set to NULL if not wanted.
     231     */
     232    DECLR3CALLBACKMEMBER(void, pfnNotifyResetTurnedIntoPowerOff,(PCVMM2USERMETHODS pThis, PUVM pUVM));
     233
    224234    /** Magic value (VMM2USERMETHODS_MAGIC) marking the end of the structure. */
    225235    uint32_t    u32EndMagic;
     
    229239#define VMM2USERMETHODS_MAGIC         UINT32_C(0x18830703)
    230240/** The VMM2USERMETHODS structure version. */
    231 #define VMM2USERMETHODS_VERSION       UINT32_C(0x00020000)
     241#define VMM2USERMETHODS_VERSION       UINT32_C(0x00020001)
    232242
    233243
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette