VirtualBox

Changeset 66045 in vbox


Ignore:
Timestamp:
Mar 10, 2017 4:57:15 PM (8 years ago)
Author:
vboxsync
Message:

VMM: Nested Hw.virt: Read strictly what we need into VMCPU, dealing with conservative stack sizes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/HMSVMAll.cpp

    r66044 r66045  
    193193    pCtx->hwvirt.svm.GCPhysVmcb = GCPhysVmcb;
    194194
    195 #if 0
    196     SVMVMCB Vmcb;
     195    /*
     196     * Cache the VMCB controls.
     197     */
    197198    PVM pVM = pVCpu->CTX_SUFF(pVM);
    198     //int rc = PGMPhysSimpleReadGCPhys(pVM, &Vmcb, GCPhysVmcb, X86_PAGE_4K_SIZE);
    199     int rc = VINF_SUCCESS;
     199    int rc = PGMPhysSimpleReadGCPhys(pVM, &pCtx->hwvirt.svm.VmcbCtrl, GCPhysVmcb, sizeof(pCtx->hwvirt.svm.VmcbCtrl));
    200200    if (RT_SUCCESS(rc))
    201201    {
     
    220220
    221221        /*
    222          * Cache the VMCB controls.
    223          */
    224         pCtx->hwvirt.svm.VmcbCtrl = Vmcb.ctrl;
    225 
    226         /*
    227222         * Validate the VMCB controls.
    228223         */
     
    250245
    251246    return rc;
    252 #endif
    253     return VERR_NOT_IMPLEMENTED;
    254 
    255247}
    256248
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