summaryrefslogtreecommitdiff
path: root/src/VBox/VMM/VMMR0/VMMR0.cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2021-08-28 23:38:05 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2021-08-28 23:38:05 +0000
commit964ed96c2a80e7268b0d0c6b33bc05ca7f8c3a44 (patch)
tree1c3a4bd63bfcd5efc6d894e4655fa3d40e91cef2 /src/VBox/VMM/VMMR0/VMMR0.cpp
parent9c30553852d0b3db1e04c296410424128c5e00f1 (diff)
downloadVirtualBox-svn-964ed96c2a80e7268b0d0c6b33bc05ca7f8c3a44.tar.gz
VMM: Ensure proper log flush order by going to ring-0 to wait for the flusher thread to complete. [fix] bugref:10086
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@90976 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/VMM/VMMR0/VMMR0.cpp')
-rw-r--r--src/VBox/VMM/VMMR0/VMMR0.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/VBox/VMM/VMMR0/VMMR0.cpp b/src/VBox/VMM/VMMR0/VMMR0.cpp
index 44ced4cbf62..169ab619d82 100644
--- a/src/VBox/VMM/VMMR0/VMMR0.cpp
+++ b/src/VBox/VMM/VMMR0/VMMR0.cpp
@@ -3136,11 +3136,9 @@ static int vmmR0LogWaitFlushed(PGVM pGVM, VMCPUID idCpu, size_t idxLogger)
/*
* Do the waiting.
*/
- uint64_t const nsStart = RTTimeNanoTS();
- int rc = VINF_SUCCESS;
-
+ int rc = VINF_SUCCESS;
RTSpinlockAcquire(pGVM->vmmr0.s.LogFlusher.hSpinlock);
- uint32_t cFlushing = pR0Log->cFlushing;
+ uint32_t cFlushing = pR0Log->cFlushing;
while (cFlushing > 0)
{
pR0Log->fEmtWaiting = true;