VirtualBox

Changeset 49896 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 13, 2013 3:38:40 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: Don't need to re-enable NP on each VMRUN.

File:
1 edited

Legend:

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

    r49890 r49896  
    751751        pVmcb->guest.u64GPAT = UINT64_C(0x0006060606060606);
    752752
     753        /* Setup Nested Paging. This doesn't change throughout the execution time of the VM. */
     754        pVmcb->ctrl.NestedPaging.n.u1NestedPaging = pVM->hm.s.fNestedPaging;
     755
    753756        /* Without Nested Paging, we need additionally intercepts. */
    754757        if (!pVM->hm.s.fNestedPaging)
     
    28652868        hmR0SvmEvaluatePendingEvent(pVCpu, pCtx);
    28662869
    2867     /*
    2868      * Re-enable nested paging (automatically disabled on every VM-exit). See AMD spec. 15.25.3 "Enabling Nested Paging".
    2869      * We avoid changing the corresponding VMCB Clean bit as we're not changing it to a different value since the previous run.
    2870      */
    2871     /** @todo The above assumption could be wrong. It's not documented what
    2872      *        should be done wrt to the VMCB Clean bit, but we'll find out the
    2873      *        hard way. */
    2874     PSVMVMCB pVmcb = (PSVMVMCB)pVCpu->hm.s.svm.pvVmcb;
    2875     pVmcb->ctrl.NestedPaging.n.u1NestedPaging = pVM->hm.s.fNestedPaging;
    2876 
    28772870#ifdef HMSVM_SYNC_FULL_GUEST_STATE
    28782871    HMCPU_CF_SET(pVCpu, HM_CHANGED_ALL_GUEST);
     
    28932886            pSvmTransient->u8GuestTpr = pCtx->msrLSTAR;
    28942887        else
     2888        {
     2889            PSVMVMCB pVmcb = (PSVMVMCB)pVCpu->hm.s.svm.pvVmcb;
    28952890            pSvmTransient->u8GuestTpr = pVmcb->ctrl.IntCtrl.n.u8VTPR;
     2891        }
    28962892    }
    28972893
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