VirtualBox

Changeset 7924 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 11, 2008 3:47:21 PM (17 years ago)
Author:
vboxsync
Message:

Fixed broken ring 0 log flushing

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

Legend:

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

    r7917 r7924  
    436436                    if (VBOX_SUCCESS(rc))
    437437                    {
    438                         pVM->vmm.s.pR0Logger->pVM = pVM;
     438                        pVM->vmm.s.pR0Logger->pVM = pVM->pVMR0;
    439439                        //pVM->vmm.s.pR0Logger->fCreated = false;
    440440                        pVM->vmm.s.pR0Logger->cbLogger = RT_OFFSETOF(RTLOGGER, afGroups[pLogger->cGroups]);
     
    19971997        if (    pR0Logger
    19981998            &&  pR0Logger->Logger.offScratch > 0)
     1999{
     2000            RTLogWriteStdOut(pR0Logger->Logger.achScratch, pR0Logger->Logger.offScratch);
    19992001            RTLogFlushToLogger(&pR0Logger->Logger, NULL);
     2002}
    20002003#endif /* !LOG_ENABLED */
    20012004        if (rc != VINF_VMM_CALL_HOST)
     
    20762079#ifdef LOG_ENABLED
    20772080        PRTLOGGERGC pLogger = pVM->vmm.s.pLoggerHC;
     2081if (rc == VINF_VMM_CALL_HOST && pVM->vmm.s.u64CallHostArg == 12345) _asm int 3;
     2082
    20782083        if (    pLogger
    20792084            &&  pLogger->offScratch > 0)
  • trunk/src/VBox/VMM/VMMInternal.h

    r5999 r7924  
    7676{
    7777    /** Pointer to the VM handle. */
    78     PVM                         pVM;
     78    R0PTRTYPE(PVM)              pVM;
    7979    /** Size of the allocated logger instance (Logger). */
    8080    uint32_t                    cbLogger;
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