VirtualBox

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


Ignore:
Timestamp:
Jul 7, 2019 2:50:54 PM (5 years ago)
Author:
vboxsync
Message:

cpum.h: Nested VMX: bugref:9180 Add CPUMGetGuestVmxVirtApicPage for upcoming change.

File:
1 edited

Legend:

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

    r79376 r79576  
    23702370}
    23712371
     2372/**
     2373 * Gets the nested-guest virtual-APIC page.
     2374 *
     2375 * @returns The virtual-APIC page.
     2376 * @param   pVCpu       The cross context virtual CPU structure of the calling EMT.
     2377 * @param   pCtx        Pointer to the context.
     2378 * @param   pHCPhys     Where to store the host-physical address of the virtual-APIC
     2379 *                      page.
     2380 */
     2381DECLINLINE(void *) CPUMGetGuestVmxVirtApicPage(PCVMCPU pVCpu, PCCPUMCTX pCtx, PRTHCPHYS pHCPhysVirtApicPage)
     2382{
     2383    RT_NOREF(pVCpu);
     2384    Assert(pHCPhysVirtApicPage);
     2385    Assert(pCtx->hwvirt.enmHwvirt == CPUMHWVIRT_VMX);
     2386    *pHCPhysVirtApicPage = pCtx->hwvirt.vmx.HCPhysVirtApicPage;
     2387    return pCtx->hwvirt.vmx.CTX_SUFF(pvVirtApicPage);
     2388}
     2389
    23722390# endif /* !IN_RC */
    23732391
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