git.iko.soy/typeable/nixpkgs
on master help sign in
qemu: add upstream patches for qemu-6.1.0 regressions

first patch fixes crash in 9p code that occasionally happens also in nixos tests second patch fixes io errors from discards in aio io engine with virtio-scsi

commitd222938650f24f8f34145b87ed8b61a49f4211df authorEmil Karlson <jekarlson@gmail.com> dateWed 3 Nov 2021, 14:41 (5 years ago) parent7fe522a
1 file changed+13
pkgs/applications/virtualization/qemu/default.nix+13
pkgs/applications/virtualization/qemu/default.nix+13
@@ -97,6 +97,19 @@ stdenv.mkDerivation rec {
9797 url = "https://gitlab.com/qemu-project/qemu/-/commit/13b250b12ad3c59114a6a17d59caf073ce45b33a.patch";
9898 sha256 = "0lkzfc7gdlvj4rz9wk07fskidaqysmx8911g914ds1jnczgk71mf";
9999 })
100+ # Fixes a crash that frequently happens in some setups that share /nix/store over 9p like nixos tests
101+ # on some systems. Remove with next release.
102+ (fetchpatch {
103+ name = "fix-crash-in-v9fs_walk.patch";
104+ url = "https://gitlab.com/qemu-project/qemu/-/commit/f83df00900816476cca41bb536e4d532b297d76e.patch";
105+ sha256 = "sha256-LYGbBLS5YVgq8Bf7NVk7HBFxXq34NmZRPCEG79JPwk8=";
106+ })
107+ # Fixes an io error on discard/unmap operation for aio/file backend. Remove with next release.
108+ (fetchpatch {
109+ name = "fix-aio-discard-return-value.patch";
110+ url = "https://gitlab.com/qemu-project/qemu/-/commit/13a028336f2c05e7ff47dfdaf30dfac7f4883e80.patch";
111+ sha256 = "sha256-23xVixVl+JDBNdhe5j5WY8CB4MsnUo+sjrkAkG+JS6M=";
112+ })
100113 ] ++ lib.optional nixosTestRunner ./force-uid0-on-9p.patch
101114 ++ lib.optionals stdenv.hostPlatform.isMusl [
102115 (fetchpatch {