Skip to content

Commit

Permalink
Merge pull request #566 from hermitcore/nix-0.27.1
Browse files Browse the repository at this point in the history
build(deps): upgrade nix from 0.26.2 to 0.27.1
  • Loading branch information
mkroening committed Aug 28, 2023
2 parents b112f15 + d1f4168 commit 3cfa5a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 32 deletions.
32 changes: 4 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ rftrace-frontend = { version = "0.1", optional = true }
kvm-bindings = "0.6"
kvm-ioctls = "0.12"
mac_address = "1.1"
nix = "0.26"
nix = { version = "0.27", features = ["mman", "pthread", "signal"] }
tun-tap = { version = "0.1", default-features = false }
virtio-bindings = { version = "0.2", features = ["virtio-v4_14_0"] }
vmm-sys-util = "0.11"
Expand Down
6 changes: 3 additions & 3 deletions src/linux/uhyve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{
cmp,
ffi::OsString,
fmt, mem,
os::raw::c_void,
os::{fd::BorrowedFd, raw::c_void},
path::{Path, PathBuf},
ptr,
sync::{Arc, Mutex},
Expand Down Expand Up @@ -313,12 +313,12 @@ impl MmapMemory {
mergeable: bool,
) -> MmapMemory {
let host_address = unsafe {
mmap(
mmap::<BorrowedFd<'_>>(
None,
memory_size.try_into().unwrap(),
ProtFlags::PROT_READ | ProtFlags::PROT_WRITE,
MapFlags::MAP_PRIVATE | MapFlags::MAP_ANONYMOUS | MapFlags::MAP_NORESERVE,
-1,
None,
0,
)
.expect("mmap failed")
Expand Down

0 comments on commit 3cfa5a2

Please sign in to comment.