VirtualBox

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


Ignore:
Timestamp:
Dec 21, 2017 7:57:01 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119855
Message:

VMM: SVM VMCB struct logical adjustments for new SVM feature bits (SEV, SEV-ES).

File:
1 edited

Legend:

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

    r70258 r70260  
    875875
    876876        /* Setup Nested Paging. This doesn't change throughout the execution time of the VM. */
    877         pVmcb->ctrl.NestedPaging.n.u1NestedPaging = pVM->hm.s.fNestedPaging;
     877        pVmcb->ctrl.u1NestedPaging = pVM->hm.s.fNestedPaging;
    878878
    879879        /* Without Nested Paging, we need additionally intercepts. */
     
    21602160        pNstGstVmcbCache->fVIntrMasking     = pVmcbNstGstCtrl->IntCtrl.n.u1VIntrMasking;
    21612161        pNstGstVmcbCache->TLBCtrl           = pVmcbNstGstCtrl->TLBCtrl;
    2162         pNstGstVmcbCache->NestedPagingCtrl  = pVmcbNstGstCtrl->NestedPaging;
     2162        pNstGstVmcbCache->u1NestedPaging    = pVmcbNstGstCtrl->u1NestedPaging;
    21632163        pCtx->hwvirt.svm.fHMCachedVmcb      = true;
    21642164        Log4(("hmR0SvmVmRunCacheVmcb: Cached VMCB fields\n"));
     
    22042204         * end of Trap0eHandler in PGMAllBth.h).
    22052205         */
    2206         pVmcbNstGstCtrl->NestedPaging.n.u1NestedPaging = pVCpu->CTX_SUFF(pVM)->hm.s.fNestedPaging;
     2206        pVmcbNstGstCtrl->u1NestedPaging = pVCpu->CTX_SUFF(pVM)->hm.s.fNestedPaging;
    22072207    }
    22082208    else
     
    22102210        Assert(pVmcbNstGstCtrl->u64IOPMPhysAddr == g_HCPhysIOBitmap);
    22112211        Assert(pVmcbNstGstCtrl->u64MSRPMPhysAddr = g_HCPhysNstGstMsrBitmap);
    2212         Assert(RT_BOOL(pVmcbNstGstCtrl->NestedPaging.n.u1NestedPaging) == pVCpu->CTX_SUFF(pVM)->hm.s.fNestedPaging);
     2212        Assert(RT_BOOL(pVmcbNstGstCtrl->u1NestedPaging) == pVCpu->CTX_SUFF(pVM)->hm.s.fNestedPaging);
    22132213    }
    22142214}
     
    24652465     * This is done as the very last step of syncing the guest state, as PGMUpdateCR3() may cause longjmp's to ring-3.
    24662466     */
    2467     if (   pVmcb->ctrl.NestedPaging.n.u1NestedPaging
     2467    if (   pVmcb->ctrl.u1NestedPaging
    24682468        && pMixedCtx->cr3 != pVmcb->guest.u64CR3)
    24692469    {
     
    35563556        Log4(("ctrl.ExitIntInfo.u1Valid          %#x\n",      pVmcb->ctrl.ExitIntInfo.n.u1Valid));
    35573557        Log4(("ctrl.ExitIntInfo.u32ErrorCode     %#x\n",      pVmcb->ctrl.ExitIntInfo.n.u32ErrorCode));
    3558         Log4(("ctrl.NestedPaging                 %#RX64\n",   pVmcb->ctrl.NestedPaging.u));
     3558        Log4(("ctrl.u1NestedPaging               %RTbool\n",  pVmcb->ctrl.u1NestedPaging));
    35593559        Log4(("ctrl.EventInject.u8Vector         %#x\n",      pVmcb->ctrl.EventInject.n.u8Vector));
    35603560        Log4(("ctrl.EventInject.u3Type           %#x\n",      pVmcb->ctrl.EventInject.n.u3Type));
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