diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2022-09-28 21:58:50 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2022-09-28 21:58:50 +0000 |
commit | 7229c7cb312c16e97fdaf9bfe31eb729cef56a2c (patch) | |
tree | 1560cb80b9ec35d3f4b6dee072cd4e7326e01c3e /src/VBox/VMM/VMMR0/VMMR0.cpp | |
parent | c8c85778d27e086be0ed6ff78dd9270556fcf551 (diff) | |
download | VirtualBox-svn-7229c7cb312c16e97fdaf9bfe31eb729cef56a2c.tar.gz |
VMM,RuntimeR0: Flush the log buffer directly to the parent VMM if that's the only destination, and honor the unbuffered setting when that's the case. Setting VBOX_LOG_DEST='nofile vmm' & excluding 'buffered' from VBOX_LOG_FLAGS for the inner VBox instance will result in the logging to be intermixed w/o any buffering delays and no need to try correlate events between outer and inner vbox instances. [build fix] bugref:10092
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@96929 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/VMM/VMMR0/VMMR0.cpp')
-rw-r--r-- | src/VBox/VMM/VMMR0/VMMR0.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/VBox/VMM/VMMR0/VMMR0.cpp b/src/VBox/VMM/VMMR0/VMMR0.cpp index 3342d7d1f81..e7817a83a48 100644 --- a/src/VBox/VMM/VMMR0/VMMR0.cpp +++ b/src/VBox/VMM/VMMR0/VMMR0.cpp @@ -3164,7 +3164,7 @@ static bool vmmR0LoggerFlushInnerToRing3(PGVM pGVM, PGVMCPU pGVCpu, uint32_t i * Inner worker for vmmR0LoggerFlushCommon when only flushing to the parent * VMM's logs. */ -static bool vmmR0LoggerFlushInnerToParent(PGVM pGVM, PGVMCPU pGVCpu, PVMMR0PERVCPULOGGER pR0Log, PRTLOGBUFFERDESC pBufDesc) +static bool vmmR0LoggerFlushInnerToParent(PVMMR0PERVCPULOGGER pR0Log, PRTLOGBUFFERDESC pBufDesc) { uint32_t const cbToFlush = pBufDesc->offBuf; if (pR0Log->fFlushToParentVmmDbg) @@ -3217,7 +3217,7 @@ static bool vmmR0LoggerFlushCommon(PRTLOGGER pLogger, PRTLOGBUFFERDESC pBufDesc, && !pR0Log->fFlushToParentVmmRel) fFlushed = vmmR0LoggerFlushInnerToRing3(pGVM, pGVCpu, idxLogger, idxBuffer, pBufDesc->offBuf); else - fFlushed = vmmR0LoggerFlushInnerToParent(pGVM, pGVCpu, pR0Log, pBufDesc); + fFlushed = vmmR0LoggerFlushInnerToParent(pR0Log, pBufDesc); pR0Log->fFlushing = false; return fFlushed; } |