VirtualBox

Changeset 71970 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Apr 23, 2018 9:04:53 AM (7 years ago)
Author:
vboxsync
Message:

VMM: Nested hw.virt: Try run whatever VMRUN emulations in ring-0 although we'd be travelling back to ring-3 in many situations
due to PGM mode changes.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r71967 r71970  
    343343    LogFlow(("iemSvmVmrun\n"));
    344344
    345 #ifdef IN_RING0
    346     /*
    347      * Until PGM can handle switching the guest paging mode in ring-0,
    348      * there's no point in trying to emulate VMRUN in ring-0 as we have
    349      * to go back to ring-3 anyway, see @bugref{7243#c48}.
    350      */
    351     RT_NOREF(pVCpu, pCtx, cbInstr, GCPhysVmcb);
    352     return VERR_IEM_ASPECT_NOT_IMPLEMENTED;
    353 #else
    354 
    355345    /*
    356346     * Cache the physical address of the VMCB for #VMEXIT exceptions.
     
    835825    Log(("iemSvmVmrun: Failed to read nested-guest VMCB at %#RGp (rc=%Rrc) -> #VMEXIT\n", GCPhysVmcb, rc));
    836826    return rc;
    837 #endif
    838827}
    839828
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r71965 r71970  
    78197819{
    78207820    HMSVM_VALIDATE_EXIT_HANDLER_PARAMS();
    7821     /** @todo Stat. */
    7822     /* STAM_COUNTER_INC(&pVCpu->hm.s.StatExitVmrun); */
    7823 #if 0
     7821
    78247822    VBOXSTRICTRC rcStrict;
    78257823    uint8_t const cbInstr = hmR0SvmGetInstrLengthHwAssist(pVCpu, pCtx, 3);
     
    78327830    }
    78337831    return VBOXSTRICTRC_VAL(rcStrict);
    7834 #endif
    7835     return VERR_EM_INTERPRETER;
    78367832}
    78377833
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