Skip to content

Commit

Permalink
cloud-hypervisor: backport UB fix in kvm-ioctls
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alyssais committed Jan 15, 2025
1 parent 8b38173 commit 66be312
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/by-name/cl/cloud-hypervisor/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-drxJtlvBpkK3I7Ob3+pH4KLUq53GWXe1pmv7CI3bbP4=";
};

cargoPatches = [
(fetchpatch {
name = "kvm-ioctls-0.19.1.patch";
url = "https://github.com/cloud-hypervisor/cloud-hypervisor/commit/eaa21946993276434403d41419a34e564935c8e9.patch";
hash = "sha256-G7B0uGl/RAkwub8x1jNNgBrC0dwq/Gv46XpbtTZWD5M=";
})
];

useFetchCargoVendor = true;
cargoHash = "sha256-wifctp30ApnxtRMlzksoSGrIJUT1cB0p1RBxfyITuZI=";
cargoHash = "sha256-F6ukvSwMHRHXoZKgXEFnTAN1B80GsQDW8iqZAvsREr4=";

separateDebugInfo = true;

Expand Down

0 comments on commit 66be312

Please sign in to comment.