VirtualBox

Changeset 72771 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Jun 29, 2018 11:25:05 AM (6 years ago)
Author:
vboxsync
Message:

VMM: Avoid calling CPUMQueryGuestCtxPtr when possible, cleanup.

File:
1 edited

Legend:

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

    r72762 r72771  
    11851185        Log4Func(("%#RGv\n", GCVirt));
    11861186
    1187         PCPUMCTX pCtx  = CPUMQueryGuestCtxPtr(pVCpu);
     1187        PCPUMCTX pCtx  = &pVCpu->cpum.GstCtx;
    11881188        PSVMVMCB pVmcb = hmR0SvmGetCurrentVmcb(pVCpu, pCtx);
    11891189        AssertMsgReturn(pVmcb, ("Invalid pVmcb!\n"), VERR_SVM_INVALID_PVMCB);
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