VirtualBox

Changeset 30251 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jun 16, 2010 1:36:00 PM (15 years ago)
Author:
vboxsync
Message:

Paranoid check

File:
1 edited

Legend:

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

    r30237 r30251  
    12411241
    12421242    PVMCPU pVCpu = VMMGetCpu(pVM);
    1243 
    1244     /*
    1245      * Check that the jump buffer is armed.
    1246      */
     1243    if (pVCpu)
     1244    {
     1245        /*
     1246         * Check that the jump buffer is armed.
     1247         */
    12471248# ifdef RT_ARCH_X86
    1248     if (    !pVCpu->vmm.s.CallRing3JmpBufR0.eip
    1249         ||  pVCpu->vmm.s.CallRing3JmpBufR0.fInRing3Call)
     1249        if (    !pVCpu->vmm.s.CallRing3JmpBufR0.eip
     1250            ||  pVCpu->vmm.s.CallRing3JmpBufR0.fInRing3Call)
    12501251# else
    1251     if (    !pVCpu->vmm.s.CallRing3JmpBufR0.rip
    1252         ||  pVCpu->vmm.s.CallRing3JmpBufR0.fInRing3Call)
     1252        if (    !pVCpu->vmm.s.CallRing3JmpBufR0.rip
     1253            ||  pVCpu->vmm.s.CallRing3JmpBufR0.fInRing3Call)
    12531254# endif
    1254     {
     1255        {
    12551256# ifdef DEBUG
    1256         SUPR0Printf("vmmR0LoggerFlush: Jump buffer isn't armed!\n");
     1257            SUPR0Printf("vmmR0LoggerFlush: Jump buffer isn't armed!\n");
    12571258# endif
    1258         return;
    1259     }
    1260     VMMRZCallRing3(pVM, pVCpu, VMMCALLRING3_VMM_LOGGER_FLUSH, 0);
     1259            return;
     1260        }
     1261        VMMRZCallRing3(pVM, pVCpu, VMMCALLRING3_VMM_LOGGER_FLUSH, 0);
     1262    }
     1263# ifdef DEBUG
     1264    else
     1265        SUPR0Printf("vmmR0LoggerFlush: invalid VCPU context!\n");
     1266# endif
    12611267#endif
    12621268}
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