VirtualBox

Changeset 72771 in vbox


Ignore:
Timestamp:
Jun 29, 2018 11:25:05 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123312
Message:

VMM: Avoid calling CPUMQueryGuestCtxPtr when possible, cleanup.

Location:
trunk/src/VBox/VMM
Files:
2 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);
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r72770 r72771  
    26712671     */
    26722672    if (   ((pSel->u32Limit & 0xfff00000) == 0x00000000 ||  pSel->Attr.n.u1Granularity)
    2673         && ((pSel->u32Limit & 0x00000fff) == 0x00000fff || !pSel->Attr.n.u1Granularity) )
     2673        && ((pSel->u32Limit & 0x00000fff) == 0x00000fff || !pSel->Attr.n.u1Granularity))
    26742674        return true;
    26752675    return false;
     
    27222722                         */
    27232723                        if (   ((pSel->u32Limit & 0xfff00000) == 0x00000000 ||  pSel->Attr.n.u1Granularity)
    2724                             && ((pSel->u32Limit & 0x00000fff) == 0x00000fff || !pSel->Attr.n.u1Granularity) )
     2724                            && ((pSel->u32Limit & 0x00000fff) == 0x00000fff || !pSel->Attr.n.u1Granularity))
    27252725                            return true;
    27262726                    }
     
    27762776     */
    27772777    if (   ((pSel->u32Limit & 0xfff00000) == 0x00000000 ||  pSel->Attr.n.u1Granularity)
    2778         && ((pSel->u32Limit & 0x00000fff) == 0x00000fff || !pSel->Attr.n.u1Granularity) )
     2778        && ((pSel->u32Limit & 0x00000fff) == 0x00000fff || !pSel->Attr.n.u1Granularity))
    27792779        return true;
    27802780    return false;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette