VirtualBox

Ignore:
Timestamp:
Apr 4, 2013 8:24:29 PM (12 years ago)
Author:
vboxsync
Message:

VMM/VMMR0: HM bits, remove unused flags.

File:
1 edited

Legend:

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

    r45349 r45351  
    25912591     * Guest FPU.
    25922592     */
    2593     if (   (pVCpu->hm.s.fContextUseFlags & HM_CHANGED_GUEST_CR0)
    2594         || (pVCpu->hm.s.fContextUseFlags & HM_CHANGED_GUEST_FPU))
     2593    if (pVCpu->hm.s.fContextUseFlags & HM_CHANGED_GUEST_CR0)
    25952594    {
    25962595        uint64_t u64GuestCR0 = pCtx->cr0;
     
    27342733        AssertRCReturn(rc, rc);
    27352734
    2736         pVCpu->hm.s.fContextUseFlags &= ~(HM_CHANGED_GUEST_CR0 | HM_CHANGED_GUEST_FPU);
     2735        pVCpu->hm.s.fContextUseFlags &= ~HM_CHANGED_GUEST_CR0;
    27372736    }
    27382737
    27392738    /*
    27402739     * Guest CR2.
    2741      * It's always loaded late in the assembler code. Nothing to do here.
     2740     * It's always loaded in the assembler code. Nothing to do here.
    27422741     */
    2743     pVCpu->hm.s.fContextUseFlags &= ~HM_CHANGED_GUEST_CR2;
    27442742
    27452743    /*
     
    62216219    LogFlowFunc(("pVM=%p pVCpu=%p\n", pVM, pVCpu));
    62226220
    6223     /* For longjmp reentrants we need not load the guest state all over again. */
     6221    /* For longjmp reentrants we need not load the guest state again. */
    62246222    if (!pVCpu->hm.s.fContextUseFlags)
    62256223        return VINF_SUCCESS;
    6226 
     6224   
    62276225    /* Determine real-on-v86 mode. */
    62286226    pVCpu->hm.s.vmx.RealMode.fRealOnV86Active = false;
     
    62326230        pVCpu->hm.s.vmx.RealMode.fRealOnV86Active = true;
    62336231    }
     6232
     6233    Log(("LoadGuest flags=%#RX32\n", pVCpu->hm.s.fContextUseFlags));
    62346234
    62356235    int rc = hmR0VmxLoadGuestEntryCtls(pVM, pVCpu, pCtx);
     
    75227522                case 2: /* CR2 */
    75237523                    Log(("CR2 write rc=%d\n", rc));
    7524                     pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_GUEST_CR2;
    75257524                    break;
    75267525                case 3: /* CR3 */
     
    81838182        Assert(CPUMIsGuestFPUStateActive(pVCpu));
    81848183
    8185         pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_GUEST_FPU;
     8184        pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_GUEST_CR0;
    81868185        STAM_COUNTER_INC(&pVCpu->hm.s.StatExitShadowNM);
    81878186        return VINF_SUCCESS;
     
    84778476        {
    84788477            pMixedCtx->cr2 = pVmxTransient->uExitQualification;
    8479             pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_GUEST_CR2;
    84808478            rc = hmR0VmxInjectEventVmcs(pVM, pVCpu, pMixedCtx,
    84818479                                        VMX_VMCS_CTRL_ENTRY_IRQ_INFO_FROM_EXIT_INT_INFO(pVmxTransient->uExitIntrInfo),
     
    85618559            TRPMResetTrap(pVCpu);
    85628560            pMixedCtx->cr2 = pVmxTransient->uExitQualification;
    8563             pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_GUEST_CR2;
    85648561            rc = hmR0VmxInjectEventVmcs(pVM, pVCpu, pMixedCtx,
    85658562                                        VMX_VMCS_CTRL_ENTRY_IRQ_INFO_FROM_EXIT_INT_INFO(pVmxTransient->uExitIntrInfo),
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