VirtualBox

Changeset 92408 in vbox for trunk/src/VBox/VMM/VMMRZ


Ignore:
Timestamp:
Nov 12, 2021 9:49:06 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148263
Message:

VMM: Reworked most of the call-ring-3 stuff into setjmp-longjmp-on-assert and removed the stack switching/copying/resume code. bugref:10093 bugref:10124

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMRZ/VMMRZ.cpp

    r92395 r92408  
    4444#endif
    4545
    46     Assert(pVCpu->vmm.s.cCallRing3Disabled < 16);
    47     if (ASMAtomicUoIncU32(&pVCpu->vmm.s.cCallRing3Disabled) == 1)
     46    Assert(pVCpu->vmmr0.s.cCallRing3Disabled < 16);
     47    if (ASMAtomicUoIncU32(&pVCpu->vmmr0.s.cCallRing3Disabled) == 1)
    4848    {
    4949#ifdef IN_RC
     
    7373#endif
    7474
    75     Assert(pVCpu->vmm.s.cCallRing3Disabled > 0);
    76     if (ASMAtomicUoDecU32(&pVCpu->vmm.s.cCallRing3Disabled) == 0)
     75    Assert(pVCpu->vmmr0.s.cCallRing3Disabled > 0);
     76    if (ASMAtomicUoDecU32(&pVCpu->vmmr0.s.cCallRing3Disabled) == 0)
    7777    {
    7878#ifdef IN_RC
     
    9898{
    9999    VMCPU_ASSERT_EMT(pVCpu);
    100     Assert(pVCpu->vmm.s.cCallRing3Disabled <= 16);
    101     return pVCpu->vmm.s.cCallRing3Disabled == 0;
     100    Assert(pVCpu->vmmr0.s.cCallRing3Disabled <= 16);
     101    return pVCpu->vmmr0.s.cCallRing3Disabled == 0;
    102102}
    103103
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