mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vhost_user_fs: Add virtio descriptor helper traits
Introduce helpers to split a virtio descriptor into its readable part on one side, and into its writable part on the other side. This is useful to separate the request from the reply. This code has been ported over from crosvm commit 961461350c0b6824e5f20655031bf6c6bf6b7c30. Two important modifications have been applied to the original code: - GuestMemory is replaced by GuestMemoryMmap from the vm-memory crate, which comes with different ways of accessing the memory regions. - VolatileSlice has different methods, which means the code has been updated accordingly. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
committed by
Samuel Ortiz
parent
5f7935f8e0
commit
e1fccc3615
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -1017,6 +1017,7 @@ dependencies = [
|
||||
"libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"vm-memory 0.1.0 (git+https://github.com/rust-vmm/vm-memory)",
|
||||
"vm-virtio 0.1.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
Reference in New Issue
Block a user