From 218a48c8491968735af9bb2cd87475206a6310e1 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sun, 8 May 2022 17:34:45 +0200 Subject: [PATCH] qemu: stabilize USB EHCI This patch fixes a problem that caused the NixOS tests that tested booting from USB to fail periodically. Fixes #15690, fixes #104642, fixes #170803 Also submitted upstream at https://lists.nongnu.org/archive/html/qemu-devel/2022-05/msg01484.html --- pkgs/applications/virtualization/qemu/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix index ac661ea330c..9f9b0389ced 100644 --- a/pkgs/applications/virtualization/qemu/default.nix +++ b/pkgs/applications/virtualization/qemu/default.nix @@ -103,6 +103,12 @@ stdenv.mkDerivation rec { sha256 = "sha256-gTRf9XENAfbFB3asYCXnw4OV4Af6VE1W56K2xpYDhgM="; revert = true; }) + # make nixos tests that boot from USB more stable + # https://lists.nongnu.org/archive/html/qemu-devel/2022-05/msg01484.html + (fetchpatch { + url = "https://gitlab.com/raboof/qemu/-/commit/3fb5e8fe4434130b1167a995b2a01c077cca2cd5.patch"; + sha256 = "sha256-evzrN3i4ntc/AFG0C0rezQpQbWcnx74nXO+5DLErX8o="; + }) ] ++ lib.optional nixosTestRunner ./force-uid0-on-9p.patch;