VirtualBox

Changeset 86118 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Sep 14, 2020 9:09:05 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140352
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/include/VBox/vmm/vm.h

    r86098 r86118  
    344344                  enmState, enmExpectedState, (pVCpu)->idCpu)); \
    345345    } while (0)
     346
     347# define VMCPU_ASSERT_STATE_2(pVCpu, enmExpectedState, a_enmExpectedState2) \
     348    do { \
     349        VMCPUSTATE enmState = VMCPU_GET_STATE(pVCpu); \
     350        AssertMsg(   enmState == (enmExpectedState) \
     351                  || enmState == (a_enmExpectedState2), \
     352                  ("enmState=%d  enmExpectedState=%d enmExpectedState2=%d idCpu=%u\n", \
     353                  enmState, enmExpectedState, a_enmExpectedState2, (pVCpu)->idCpu)); \
     354    } while (0)
    346355#else
    347356# define VMCPU_ASSERT_STATE(pVCpu, enmExpectedState) do { } while (0)
     357# define VMCPU_ASSERT_STATE_2(pVCpu, enmExpectedState, a_enmExpectedState2) do { } while (0)
    348358#endif
    349359/** Tests if the state means that the CPU is started. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette