VirtualBox

Changeset 19460 in vbox for trunk


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

HWACCM: play safe and only change the state to VMCPUSTATE_STARTED if it's VMCPUSTATE_STARTED_EXEC.

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

Legend:

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

    r19457 r19460  
    21312131
    21322132    /* Just set the correct state here instead of trying to catch every goto above. */
    2133     VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED);
     2133    VMCPU_CMPXCHG_STATE(pVCpu, VMCPUSTATE_STARTED, VMCPUSTATE_STARTED_EXEC);
    21342134
    21352135    STAM_PROFILE_ADV_STOP(&pVCpu->hwaccm.s.StatExit1, x);
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r19457 r19460  
    35193519
    35203520    /* Just set the correct state here instead of trying to catch every goto above. */
    3521     VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED);
     3521    VMCPU_CMPXCHG_STATE(pVCpu, VMCPUSTATE_STARTED, VMCPUSTATE_STARTED_EXEC);
    35223522
    35233523    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