Skip to content

Commit

Permalink
Bump userfaultfd to 0.8.1
Browse files Browse the repository at this point in the history
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 bytecodealliance/userfaultfd-rs#61 and fixed in bytecodealliance/userfaultfd-rs#62

Signed-off-by: Vadim Berezniker <vadim@buildbuddy.io>
  • Loading branch information
vadimberezniker committed Apr 19, 2024
1 parent 36a8d56 commit 8547c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vmm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8547c85

Please sign in to comment.