virtualbox: patch high cpu usage with NAT networking

https://github.com/VirtualBox/virtualbox/issues/356
This commit is contained in:
Yarny0
2025-12-20 17:03:24 +01:00
parent c6245e83d8
commit 17f18f4fd5
@@ -231,6 +231,14 @@ stdenv.mkDerivation (finalAttrs: {
url = "https://salsa.debian.org/pkg-virtualbox-team/virtualbox/-/raw/8028d88e6876ca5977de13c58b54e243229efe98/debian/patches/16-no-update.patch";
hash = "sha256-AGtFsRjwd8Yw296eqX3NC2TUptAhpFTRaOMutiheQ6Y=";
})
# NAT network shouldn't fully saturate one CPU
# https://github.com/VirtualBox/virtualbox/issues/356
(fetchpatch {
name = "vbox-nat-cpu.patch";
url = "https://github.com/VirtualBox/virtualbox/commit/efa378dadd192af8fbce331e9ec66fb36d65ad3d.diff";
hash = "sha256-7u3kSszv77leZdMs911TzAchU5mBqmNpgvuZDQaY9To=";
hunks = [ "2-" ];
})
]
++ [ ./extra_symbols.patch ]
# When hardening is enabled, we cannot use wrapQtApp to ensure that VirtualBoxVM sees