virtualbox: patch high cpu usage with NAT networking (#472783)

This commit is contained in:
Aleksana
2025-12-22 02:42:23 +00:00
committed by GitHub
@@ -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