mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-05 03:21:13 +00:00
3f09eff6c5
This introduces setupmapping and removemapping methods to server.rs, passthrough.rs and filesystem.rs in order to support virtiofs dax mode inside guest. Since we don't really want the server.rs to know that it is dealing with vhost-user specifically, this is making it more generic by adding a new trait which has three functions map()/unmap()/sync() corresponding to fs_slave_{map, unmap, sync}, server.rs will take anything that implements the trait. Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
17 lines
354 B
TOML
17 lines
354 B
TOML
[package]
|
|
name = "vhost_user_fs"
|
|
version = "0.1.0"
|
|
authors = ["The Cloud Hypervisor Authors"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
bitflags = "1.1.0"
|
|
libc = "0.2.65"
|
|
log = "0.4.8"
|
|
vm-memory = { git = "https://github.com/rust-vmm/vm-memory" }
|
|
vm-virtio = { path = "../vm-virtio" }
|
|
|
|
[dependencies.vhost_rs]
|
|
path = "../vhost_rs"
|
|
features = ["vhost-user-slave"]
|