Skip to content

Commit

Permalink
vhost: Always enable vm-memory/backend-mmap
Browse files Browse the repository at this point in the history
Since 4029089 ('vhost: Add support for Xen memory mappings') the
feature backend-mmap of the vm-memory crate is no longer just a
dev-dependency, as we're unconditionally importing GuestMemoryMmap from
'src/backend.rs'. Make it a general build dependency.

Signed-off-by: Sergio Lopez <slp@redhat.com>
  • Loading branch information
slp authored and jiangliu committed Jul 16, 2023
1 parent 900b9a5 commit 9306ce0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/vhost/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ bitflags = "1.0"
libc = "0.2.39"

vmm-sys-util = "0.11.0"
vm-memory = "0.12.0"
vm-memory = { version = "0.12.0", features=["backend-mmap"] }

[dev-dependencies]
tempfile = "3.2.0"
vm-memory = { version = "0.12.0", features=["backend-mmap"] }
serial_test = "0.5"

0 comments on commit 9306ce0

Please sign in to comment.