VirtualBox

Changeset 79625 in vbox


Ignore:
Timestamp:
Jul 9, 2019 4:41:50 AM (5 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: Added missing StatInjectPendingInterpret and newly added StatInjectPendingNPF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r79541 r79625  
    72187218         */
    72197219        if (pVCpu->hm.s.Event.fPending)
     7220        {
     7221            STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingInterpret);
    72207222            return VINF_EM_RAW_INJECT_TRPM_EVENT;
     7223        }
    72217224
    72227225        HMSVM_CPUMCTX_IMPORT_STATE(pVCpu, CPUMCTX_EXTRN_CS | CPUMCTX_EXTRN_RIP);
     
    72707273    }
    72717274
     7275    /*
     7276     * Nested page-fault.
     7277     */
    72727278    TRPMAssertXcptPF(pVCpu, GCPhysFaultAddr, u32ErrCode);
    72737279    int rc = PGMR0Trap0eHandlerNestedPaging(pVM, pVCpu, enmNestedPagingMode, u32ErrCode, CPUMCTX2CORE(pCtx), GCPhysFaultAddr);
     
    72877293        rc = VINF_SUCCESS;
    72887294    }
     7295
     7296    /*
     7297     * If delivering an event causes an #NPF (and not MMIO), we shall resolve the fault and
     7298     * re-inject the original event.
     7299     */
     7300    if (pVCpu->hm.s.Event.fPending)
     7301        STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingNPF);
    72897302
    72907303    return rc;
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