VirtualBox

Changeset 79096 in vbox for trunk/include


Ignore:
Timestamp:
Jun 12, 2019 7:22:59 AM (6 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Nested VMX: bugref:9180 Add CPUMSetGuestNmiBlocking for upcoming changes.

File:
1 edited

Legend:

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

    r79073 r79096  
    23962396     */
    23972397    RT_NOREF(pVCpu);
     2398    Assert(CPUMIsGuestInVmxNonRootMode(pCtx));
    23982399    Assert(CPUMIsGuestVmxPinCtlsSet(pVCpu, pCtx, VMX_PIN_CTLS_VIRT_NMI));
    23992400    return pCtx->hwvirt.vmx.fVirtNmiBlocking;
     2401#endif
     2402}
     2403
     2404/**
     2405 * Sets or clears VMX nested-guest virtual-NMI blocking.
     2406 *
     2407 * @param   pVCpu       The cross context virtual CPU structure of the calling EMT.
     2408 * @param   pCtx        The guest-CPU context.
     2409 * @param   fBlocking   Whether virtual-NMI blocking is in effect or not.
     2410 */
     2411DECLINLINE(void) CPUMSetGuestVmxVirtNmiBlocking(PCVMCPU pVCpu, PCPUMCTX pCtx, bool fBlocking)
     2412{
     2413#ifdef IN_RC
     2414    RT_NOREF3(pVCpu, pCtx, fBlocking);
     2415    AssertReleaseFailedReturnVoid();
     2416#else
     2417    RT_NOREF(pVCpu);
     2418    Assert(CPUMIsGuestInVmxNonRootMode(pCtx));
     2419    Assert(CPUMIsGuestVmxPinCtlsSet(pVCpu, pCtx, VMX_PIN_CTLS_VIRT_NMI));
     2420    pCtx->hwvirt.vmx.fVirtNmiBlocking = fBlocking;
    24002421#endif
    24012422}
     
    25802601VMM_INT_DECL(CPUMINTERRUPTIBILITY) CPUMGetGuestInterruptibility(PVMCPU pVCpu);
    25812602VMM_INT_DECL(bool)                 CPUMIsGuestNmiBlocking(PVMCPU pVCpu);
    2582 
     2603VMM_INT_DECL(void)                 CPUMSetGuestNmiBlocking(PVMCPU pVCpu, bool fBlock);
    25832604
    25842605/** @name Typical scalable bus frequency values.
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