2024-01-29 23:31:23 +01:00
|
|
|
Index: VirtualBox-7.0.14/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
|
2023-03-21 20:09:44 +01:00
|
|
|
===================================================================
|
2024-01-29 23:31:23 +01:00
|
|
|
--- VirtualBox-7.0.14.orig/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
|
|
|
|
+++ VirtualBox-7.0.14/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
|
2023-05-08 20:32:52 +02:00
|
|
|
@@ -4537,9 +4537,11 @@ static int supdrvTscDeltaThreadWait(PSUP
|
2023-03-21 20:09:44 +01:00
|
|
|
*/
|
|
|
|
static void supdrvTscDeltaThreadStartMeasurement(PSUPDRVDEVEXT pDevExt, bool fForceAll)
|
|
|
|
{
|
2023-05-08 20:32:52 +02:00
|
|
|
+ if (!pDevExt || ! pDevExt->hTscDeltaSpinlock)
|
|
|
|
+ return;
|
2023-03-21 20:09:44 +01:00
|
|
|
+ RTSpinlockAcquire(pDevExt->hTscDeltaSpinlock);
|
|
|
|
if (pDevExt->hTscDeltaThread != NIL_RTTHREAD)
|
|
|
|
{
|
|
|
|
- RTSpinlockAcquire(pDevExt->hTscDeltaSpinlock);
|
|
|
|
if ( pDevExt->enmTscDeltaThreadState == kTscDeltaThreadState_Listening
|
|
|
|
|| pDevExt->enmTscDeltaThreadState == kTscDeltaThreadState_Measuring)
|
|
|
|
{
|
2023-05-08 20:32:52 +02:00
|
|
|
@@ -4550,9 +4552,9 @@ static void supdrvTscDeltaThreadStartMea
|
2023-03-21 20:09:44 +01:00
|
|
|
else if ( pDevExt->enmTscDeltaThreadState == kTscDeltaThreadState_WaitAndMeasure
|
|
|
|
&& fForceAll)
|
|
|
|
pDevExt->fTscThreadRecomputeAllDeltas = true;
|
|
|
|
- RTSpinlockRelease(pDevExt->hTscDeltaSpinlock);
|
|
|
|
RTThreadUserSignal(pDevExt->hTscDeltaThread);
|
|
|
|
}
|
|
|
|
+ RTSpinlockRelease(pDevExt->hTscDeltaSpinlock);
|
|
|
|
}
|
|
|
|
|
|
|
|
|