VirtualBox

Ignore:
Timestamp:
Jun 25, 2013 12:27:49 PM (12 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: AMD-V bits.

File:
1 edited

Legend:

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

    r46762 r46774  
    740740    Assert(pVM->hm.s.svm.fSupported);
    741741
    742     bool fFlushPending = pVM->hm.s.svm.fAlwaysFlushTLB | VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_TLB_FLUSH);
     742    bool fFlushPending = pVM->hm.s.svm.fAlwaysFlushTLB | VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_TLB_FLUSH);
    743743
    744744    /* Skip it if a TLB flush is already pending. */
     
    19661966    pVmcb->ctrl.EventInject.u = pEvent->u;
    19671967    STAM_COUNTER_INC(&pVCpu->hm.s.paStatInjectedIrqsR0[pEvent->n.u8Vector & MASK_INJECT_IRQ_STAT]);
     1968
     1969    Log4(("hmR0SvmInjectEventVmcb: u=%#RX64 u8Vector=%#x Type=%#x ErrorCodeValid=%RTbool ErrorCode=%#RX32\n", pEvent->u,
     1970          pEvent->n.u8Vector, (uint8_t)pEvent->n.u3Type, !!pEvent->n.u1ErrorCodeValid, pEvent->n.u32ErrorCode));
    19681971}
    19691972
     
    21452148        pVmcb->ctrl.u32InterceptCtrl1 |= SVM_CTRL1_INTERCEPT_VINTR;
    21462149        pVmcb->ctrl.u64VmcbCleanBits &= ~(HMSVM_VMCB_CLEAN_INTERCEPTS | HMSVM_VMCB_CLEAN_TPR);
     2150
     2151        Log4(("Setting virtual interrupt intercept\n"));
    21472152    }
    21482153}
     
    21852190            hmR0SvmSetVirtIntrIntercept(pVmcb);
    21862191    }                                                          /** @todo SMI. SMIs take priority over NMIs. */
    2187     else if (VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_INTERRUPT_NMI))   /* NMI. NMIs take priority over regular interrupts . */
     2192    else if (VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_INTERRUPT_NMI))   /* NMI. NMIs take priority over regular interrupts . */
    21882193    {
    21892194        if (!fIntShadow)
     
    24162421        if (VMCPU_FF_IS_PENDING(pVCpu,VMCPU_FF_PGM_SYNC_CR3 | VMCPU_FF_PGM_SYNC_CR3_NON_GLOBAL))
    24172422        {
    2418             int rc = PGMSyncCR3(pVCpu, pCtx->cr0, pCtx->cr3, pCtx->cr4, VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3));
     2423            int rc = PGMSyncCR3(pVCpu, pCtx->cr0, pCtx->cr3, pCtx->cr4, VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_PGM_SYNC_CR3));
    24192424            if (rc != VINF_SUCCESS)
    24202425            {
     
    28362841        case SVM_EXIT_MWAIT:
    28372842            return hmR0SvmExitMwait(pVCpu, pCtx, pSvmTransient);
     2843
     2844        case SVM_EXIT_HLT:
     2845            return hmR0SvmExitHlt(pVCpu, pCtx, pSvmTransient);
    28382846
    28392847        case SVM_EXIT_READ_CR0:
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