VirtualBox

Changeset 45754 in vbox for trunk


Ignore:
Timestamp:
Apr 26, 2013 1:59:29 AM (12 years ago)
Author:
vboxsync
Message:

HMIsInHwVirtNoLongJmpCtx

File:
1 edited

Legend:

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

    r45749 r45754  
    9999#else
    100100# define HMIsInHwVirtCtx(a_pVCpu)       (false)
     101#endif
     102
     103/**
     104 * Checks whether we're in the special hardware virtualization context and we
     105 * cannot perform long jump without guru meditating and possibly messing up the
     106 * host and/or guest state.
     107 *
     108 * This is after we've turned interrupts off and such.
     109 *
     110 * @returns true / false.
     111 * @param   a_pVCpu     The caller's cross context virtual CPU structure.
     112 * @thread  EMT
     113 */
     114#ifdef IN_RING0
     115# define HMIsInHwVirtNoLongJmpCtx(a_pVCpu)  (VMCPU_GET_STATE(a_pVCpu) == VMCPUSTATE_STARTED_EXEC)
     116#else
     117# define HMIsInHwVirtNoLongJmpCtx(a_pVCpu)  (false)
    101118#endif
    102119
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