VirtualBox

Ignore:
Timestamp:
Sep 14, 2020 9:09:05 AM (4 years ago)
Author:
vboxsync
Message:

VMM: Fix debug assertion for VMs with VMSVGA and 3D enabled and using NEM/Hyper-V where VMR3WaitHalted() might be called when the vmsvga sync register is accessed in R3 in the NEM execution loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/VMEmt.cpp

    r82968 r86118  
    11521152     * Do the halt.
    11531153     */
    1154     VMCPU_ASSERT_STATE(pVCpu, VMCPUSTATE_STARTED);
     1154    VMCPU_ASSERT_STATE_2(pVCpu, VMCPUSTATE_STARTED, VMCPUSTATE_STARTED_EXEC_NEM);
     1155    VMCPUSTATE enmStateOld = VMCPU_GET_STATE(pVCpu);
    11551156    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED_HALTED);
    11561157    PUVM pUVM = pUVCpu->pUVM;
    11571158    int rc = g_aHaltMethods[pUVM->vm.s.iHaltMethod].pfnHalt(pUVCpu, fMask, u64Now);
    1158     VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED);
     1159    VMCPU_SET_STATE(pVCpu, enmStateOld);
    11591160
    11601161    /*
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