VirtualBox

Changeset 71640 in vbox for trunk/src


Ignore:
Timestamp:
Apr 4, 2018 6:30:54 AM (7 years ago)
Author:
vboxsync
Message:

VMM: Nested hw.virt: Abstract SVM V_INTR_MASKING so we can refer to the original VMCB value rather than a potentially modified
value while executing the nested-guest in hardware-assisted SVM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/HMSVMAll.cpp

    r71529 r71640  
    543543
    544544/**
     545 * Checks if the guest VMCB has virtual-interrupts masking enabled.
     546 *
     547 * @returns true if virtual-interrupts are masked, @c false otherwise.
     548 * @param   pVCpu   The cross context virtual CPU structure of the calling EMT.
     549 * @param   pCtx    Pointer to the context.
     550 */
     551VMM_INT_DECL(bool) HMIsGuestSvmVirtIntrMasking(PVMCPU pVCpu, PCCPUMCTX pCtx)
     552{
     553    Assert(pCtx->hwvirt.svm.fHMCachedVmcb); NOREF(pCtx);
     554    PCSVMNESTEDVMCBCACHE pVmcbNstGstCache = &pVCpu->hm.s.svm.NstGstVmcbCache;
     555    return pVmcbNstGstCache->fVIntrMasking;
     556}
     557
     558
     559/**
    545560 * Checks whether the SVM nested-guest is in a state to receive physical (APIC)
    546561 * interrupts.
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