vm-virtio: Add vhost-user-fs support

The vhost-user-fs or virtio-fs device allows files and directories to
be shared between host and guest. This patch adds the implementation
of this device to the cloud-hypervisor device model.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-05-21 11:54:53 -07:00
committed by Samuel Ortiz
parent 8f70771b1d
commit 1ddc8f2f0d
4 changed files with 460 additions and 1 deletions

10
Cargo.lock generated
View File

@@ -629,6 +629,15 @@ name = "vec_map"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "vhost_rs"
version = "0.1.0"
dependencies = [
"bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.58 (registry+https://github.com/rust-lang/crates.io-index)",
"vmm-sys-util 0.1.0 (git+https://github.com/rust-vmm/vmm-sys-util)",
]
[[package]]
name = "virtio-bindings"
version = "0.1.0"
@@ -663,6 +672,7 @@ dependencies = [
"net_util 0.1.0",
"pci 0.1.0",
"tempfile 3.0.8 (registry+https://github.com/rust-lang/crates.io-index)",
"vhost_rs 0.1.0",
"virtio-bindings 0.1.0",
"vm-allocator 0.1.0",
"vm-memory 0.1.0 (git+https://github.com/rust-vmm/vm-memory)",