VirtualBox

Changeset 97225 in vbox


Ignore:
Timestamp:
Oct 18, 2022 10:56:43 PM (2 years ago)
Author:
vboxsync
Message:

VMM/HMSVM: Access CPUMCTX::eflags via the 'u' member when possible in preparation for putting internal info in the reserved bits.

File:
1 edited

Legend:

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

    r97202 r97225  
    24132413    pVmcb->guest.u64RIP    = pCtx->rip;
    24142414    pVmcb->guest.u64RSP    = pCtx->rsp;
    2415     pVmcb->guest.u64RFlags = pCtx->eflags.u32;
     2415    pVmcb->guest.u64RFlags = pCtx->eflags.u;
    24162416    pVmcb->guest.u64RAX    = pCtx->rax;
    24172417
     
    26992699        if (fWhat & CPUMCTX_EXTRN_RFLAGS)
    27002700        {
    2701             pCtx->eflags.u32 = pVmcbGuest->u64RFlags;
     2701            pCtx->eflags.u = pVmcbGuest->u64RFlags;
    27022702            if (pVCpu->hmr0.s.fClearTrapFlag)
    27032703            {
     
    36313631             && !pVCpu->hm.s.fSingleInstruction)
    36323632    {
    3633         bool const fBlockInt = !pSvmTransient->fIsNestedGuest ? !(pCtx->eflags.u32 & X86_EFL_IF)
     3633        bool const fBlockInt = !pSvmTransient->fIsNestedGuest ? !(pCtx->eflags.u & X86_EFL_IF)
    36343634                                                              : CPUMIsGuestSvmPhysIntrEnabled(pVCpu, pCtx);
    36353635        if (    fGif
     
    37083708            fAllowInt = CPUMIsGuestSvmPhysIntrEnabled(pVCpu, pCtx) || CPUMIsGuestSvmVirtIntrEnabled(pVCpu, pCtx);
    37093709        else
    3710             fAllowInt = RT_BOOL(pCtx->eflags.u32 & X86_EFL_IF);
     3710            fAllowInt = RT_BOOL(pCtx->eflags.u & X86_EFL_IF);
    37113711    }
    37123712#endif
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