Commit 17f18f4f authored by Yarny0's avatar Yarny0
Browse files

virtualbox: patch high cpu usage with NAT networking

parent c6245e83
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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