VirtualBox

Changeset 19457 in vbox for trunk


Ignore:
Timestamp:
May 6, 2009 7:33:30 PM (16 years ago)
Author:
vboxsync
Message:

HWACCM: Work the VMCPU::enmState.

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

Legend:

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

    r19417 r19457  
    914914    }
    915915
     916    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED_EXEC);
     917
    916918    /* When external interrupts are pending, we should exit the VM when IF is set. */
    917919    /* Note! *After* VM_FF_INHIBIT_INTERRUPTS check!!! */
     
    10701072    pVCpu->hwaccm.s.svm.pfnVMRun(pVM->hwaccm.s.svm.pVMCBHostPhys, pVCpu->hwaccm.s.svm.pVMCBPhys, pCtx, pVM, pVCpu);
    10711073    TMNotifyEndOfExecution(pVCpu);
     1074    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED);
    10721075    STAM_PROFILE_ADV_STOP(&pVCpu->hwaccm.s.StatInGC, x);
    10731076
     
    21272130        rc = VINF_EM_RAW_EMULATE_INSTR;
    21282131
     2132    /* Just set the correct state here instead of trying to catch every goto above. */
     2133    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED);
     2134
    21292135    STAM_PROFILE_ADV_STOP(&pVCpu->hwaccm.s.StatExit1, x);
    21302136    return rc;
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r19417 r19457  
    21072107    /** @todo check timers?? */
    21082108
     2109    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED_EXEC);
     2110
    21092111    /* TPR caching using CR8 is only available in 64 bits mode */
    21102112    /* Note the 32 bits exception for AMD (X86_CPUID_AMD_FEATURE_ECX_CR8L), but that appears missing in Intel CPUs */
     
    22212223    rc = pVCpu->hwaccm.s.vmx.pfnStartVM(pVCpu->hwaccm.s.fResumeVM, pCtx, &pVCpu->hwaccm.s.vmx.VMCSCache, pVM, pVCpu);
    22222224    TMNotifyEndOfExecution(pVCpu);
     2225    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED);
    22232226
    22242227    AssertMsg(!pVCpu->hwaccm.s.vmx.VMCSCache.Write.cValidEntries, ("pVCpu->hwaccm.s.vmx.VMCSCache.Write.cValidEntries=%d\n", pVCpu->hwaccm.s.vmx.VMCSCache.Write.cValidEntries));
     
    35143517        pVCpu->hwaccm.s.vmx.lasterror.idCurrentCpu   = RTMpCpuId();
    35153518    }
     3519
     3520    /* Just set the correct state here instead of trying to catch every goto above. */
     3521    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED);
    35163522
    35173523    STAM_STATS({
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