gentoo-ebuilds/app-emulation/virtualbox/files/virtualbox-7.2.4-fix-nat-cpu-load-2.patch
Viorel Munteanu 2b754a3b44
app-emulation/virtualbox: fix high CPU load regression
Apply patch from upstream fixing regression causing high CPU load.

Closes: https://bugs.gentoo.org/967656
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
2025-12-18 21:47:13 +02:00

21 lines
836 B
Diff

https://github.com/VirtualBox/virtualbox/commit/1af38857c2c5e47ecfbdfeb31bda97101009b604
https://bugs.gentoo.org/967656
From 1af38857c2c5e47ecfbdfeb31bda97101009b604 Mon Sep 17 00:00:00 2001
From: Jack Doherty <jack.doherty@oracle.com>
Date: Mon, 10 Nov 2025 22:17:26 +0000
Subject: [PATCH] Network/NAT: Fix release burns. github:gh-356
svn:sync-xref-src-repo-rev: r171191
--- a/src/VBox/Devices/Network/DrvNAT.cpp
+++ b/src/VBox/Devices/Network/DrvNAT.cpp
@@ -561,6 +561,9 @@ static DECLCALLBACK(void) drvNATNetworkUp_EndXmit(PPDMINETWORKUP pInterface)
*/
static void drvNATNotifyNATThread(PDRVNAT pThis, const char *pszWho)
{
+#ifndef LOG_ENABLED
+ RT_NOREF(pszWho);
+#endif
Log3(("Notifying NAT Thread. Culprit: %s\n", pszWho));
#ifdef RT_OS_WINDOWS
int cbWritten = send(pThis->ahWakeupSockPair[0], "", 1, NULL);