VirtualBox

Changeset 69819 in vbox


Ignore:
Timestamp:
Nov 24, 2017 5:27:07 AM (7 years ago)
Author:
vboxsync
Message:

VMM: Nested Hw.virt: bits.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r69764 r69819  
    25522552 *
    25532553 * @param   pCtx        The guest-CPU context.
     2554 *
     2555 * @sa      hmR0SvmCanNstGstTakePhysIntr.
    25542556 */
    25552557VMM_INT_DECL(bool) CPUMCanSvmNstGstTakePhysIntr(PCCPUMCTX pCtx)
     
    25912593#else
    25922594    Assert(CPUMIsGuestInSvmNestedHwVirtMode(pCtx));
     2595    Assert(pCtx->hwvirt.svm.fGif);
    25932596
    25942597    PCSVMVMCBCTRL pVmcbCtrl = &pCtx->hwvirt.svm.CTX_SUFF(pVmcb)->ctrl;
     
    25982601
    25992602    if (!pCtx->rflags.Bits.u1IF)
    2600         return false;
    2601 
    2602     if (!pCtx->hwvirt.svm.fGif)
    26032603        return false;
    26042604
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r69801 r69819  
    27372737    {
    27382738        pCtx->cr2 = uFaultAddress;
     2739        /* The VMCB clean bit for CR2 will be updated while re-loading the guest state. */
    27392740        HMCPU_CF_SET(pVCpu, HM_CHANGED_GUEST_CR2);
    27402741    }
     
    30523053 *          nested-guest VMCB which may have been suitably modified for executing
    30533054 *          using hardware-assisted SVM.
     3055 *
     3056 * @sa      CPUMCanSvmNstGstTakePhysIntr.
    30543057 */
    30553058static bool hmR0SvmCanNstGstTakePhysIntr(PVMCPU pVCpu, PCCPUMCTX pCtx)
     
    31793182         * nested-guest VMCB interrupt control fields besides V_INTR_MASKING, see hmR0SvmVmRunCacheVmcb.
    31803183         */
    3181         if (   (pVmcbNstGstCache->u64InterceptCtrl & SVM_CTRL_INTERCEPT_VINTR)
    3182             && VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_INTERRUPT_NESTED_GUEST)
     3184        if (   VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_INTERRUPT_NESTED_GUEST)
     3185            && (pVmcbNstGstCache->u64InterceptCtrl & SVM_CTRL_INTERCEPT_VINTR)
    31833186            && CPUMCanSvmNstGstTakeVirtIntr(pCtx))
    31843187        {
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