From 8547c853ff2768d890b3d53be357e3d8f4a036de Mon Sep 17 00:00:00 2001 From: Vadim Berezniker Date: Fri, 19 Apr 2024 14:19:50 -0700 Subject: [PATCH] Bump userfaultfd to 0.8.1 UFFD support is not compatible with newer kernels as there was a new ioctl option added that the older userfaultfd version does not recognize: ``` [PUT /snapshot/load][400] loadSnapshotBadRequest &{FaultMessage:Load snapshot error: Failed to restore from snapshot: Failed to load guest memory: Error creating guest memory from uffd: Failed to register memory address range with the userfaultfd object: Unrecognized ioctl flags: 284} ``` This was reported in https://github.com/bytecodealliance/userfaultfd-rs/issues/61 and fixed in https://github.com/bytecodealliance/userfaultfd-rs/pull/62 Signed-off-by: Vadim Berezniker --- src/vmm/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmm/Cargo.toml b/src/vmm/Cargo.toml index 67394b94ab7..38a45caac01 100644 --- a/src/vmm/Cargo.toml +++ b/src/vmm/Cargo.toml @@ -25,7 +25,7 @@ serde_json = "1.0.78" timerfd = "1.5.0" thiserror = "1.0.32" displaydoc = "0.2.4" -userfaultfd = "0.7.0" +userfaultfd = "0.8.1" vhost = { version = "0.10.0", features = ["vhost-user-frontend"] } vm-allocator = "0.1.0" vm-superio = "0.7.0"