VirtualBox

Changeset 99260 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Apr 3, 2023 12:19:57 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156643
Message:

VMM/CPUM: Nested VMX: bugref:10318 Added CPUMIsInInterruptShadowWithUpdateEx for upcoming change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum-x86-amd64.h

    r99051 r99260  
    16411641
    16421642/**
     1643 * Checks if we're in an "interrupt shadow", i.e. after a STI, POP SS or MOV SS,
     1644 * updating the state if stale while also returning the reason for the interrupt
     1645 * inhibition.
     1646 *
     1647 * This also inhibit NMIs, except perhaps for nested guests.
     1648 *
     1649 * @retval  true if interrupts are inhibited by interrupt shadow.
     1650 * @retval  false if not.
     1651 * @param   pCtx            Current guest CPU context.
     1652 * @param   pfInhibitShw    Where to store which type of interrupt inhibition was
     1653 *                          active (see CPUMCTX_INHIBIT_XXX).
     1654 * @note    Requires pCtx->rip to be up to date.
     1655 */
     1656DECLINLINE(bool) CPUMIsInInterruptShadowWithUpdateEx(PCPUMCTX pCtx, uint32_t *pfInhibitShw)
     1657{
     1658    Assert(pfInhibitShw);
     1659    *pfInhibitShw = pCtx->eflags.uBoth & CPUMCTX_INHIBIT_SHADOW;
     1660    return CPUMIsInInterruptShadowWithUpdate(pCtx);
     1661}
     1662
     1663/**
    16431664 * Checks if we're in an "interrupt shadow" due to a POP SS or MOV SS
    16441665 * instruction.
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