VirtualBox

Changeset 72983 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jul 8, 2018 4:15:47 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123535
Message:

VMM/HM, HMVMX: bugref:9193 Stop passing pCtx around and use pVCpu->cpum.GstCtx instead where possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r72966 r72983  
    26252625 * @param   pVM         The cross context VM structure.
    26262626 * @param   pVCpu       The cross context virtual CPU structure.
    2627  * @param   pCtx        Pointer to the guest CPU context.
    2628  */
    2629 VMMR3_INT_DECL(int) HMR3PatchTprInstr(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
    2630 {
    2631     NOREF(pCtx);
     2627 */
     2628VMMR3_INT_DECL(int) HMR3PatchTprInstr(PVM pVM, PVMCPU pVCpu)
     2629{
    26322630    int rc = VMMR3EmtRendezvous(pVM, VMMEMTRENDEZVOUS_FLAGS_TYPE_ONE_BY_ONE,
    26332631                                pVM->hm.s.pGuestPatchMem ? hmR3PatchTprInstr : hmR3ReplaceTprInstr,
     
    30343032     * when the unrestricted guest execution feature is missing (VT-x only).
    30353033     */
    3036     if (   pVM->hm.s.vmx.fEnabled
     3034    if (    pVM->hm.s.vmx.fEnabled
    30373035        && !pVM->hm.s.vmx.fUnrestrictedGuest
    3038         && CPUMIsGuestInRealModeEx(pCtx)
     3036        &&  CPUMIsGuestInRealModeEx(pCtx)
    30393037        && !PDMVmmDevHeapIsEnabled(pVM))
    30403038    {
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