Skip to content

Commit 66be312

Browse files
committed
cloud-hypervisor: backport UB fix in kvm-ioctls
VFIO is broken on x86_64 as a result of UB in kvm-ioctls with LLVM 19, which is currently in staging-next. This backports the fix.
1 parent 8b38173 commit 66be312

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkgs/by-name/cl/cloud-hypervisor/package.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,16 @@ rustPlatform.buildRustPackage rec {
2020
hash = "sha256-drxJtlvBpkK3I7Ob3+pH4KLUq53GWXe1pmv7CI3bbP4=";
2121
};
2222

23+
cargoPatches = [
24+
(fetchpatch {
25+
name = "kvm-ioctls-0.19.1.patch";
26+
url = "https://github.com/cloud-hypervisor/cloud-hypervisor/commit/eaa21946993276434403d41419a34e564935c8e9.patch";
27+
hash = "sha256-G7B0uGl/RAkwub8x1jNNgBrC0dwq/Gv46XpbtTZWD5M=";
28+
})
29+
];
30+
2331
useFetchCargoVendor = true;
24-
cargoHash = "sha256-wifctp30ApnxtRMlzksoSGrIJUT1cB0p1RBxfyITuZI=";
32+
cargoHash = "sha256-F6ukvSwMHRHXoZKgXEFnTAN1B80GsQDW8iqZAvsREr4=";
2533

2634
separateDebugInfo = true;
2735

0 commit comments

Comments
 (0)