Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 29 additions & 28 deletions Cargo.lock

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

8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ vhost = { version = "0.15", features = ["vhost-user-backend"] }
vhost-user-backend = "0.21"
virtio-bindings = "0.2.5"
virtio-queue = "0.17"
vm-memory = "0.17.1"
vm-memory = "0.18"
vmm-sys-util = "0.15"

[workspace.lints.rust]
Expand Down Expand Up @@ -63,3 +63,9 @@ missing_safety_doc = "deny"
undocumented_unsafe_blocks = "deny"
option_if_let_else = "allow"
cloned_ref_to_slice_refs = "allow"

[patch.crates-io]
virtio-vsock = { git = "https://github.com/luigix25/vm-virtio.git", branch = "fix_vsock" }
virtio-queue = { git = "https://github.com/luigix25/vm-virtio.git", branch = "fix_vsock" }
vhost = { git = "https://github.com/XanClic/vhost.git", branch = "vm-memory-0.18" }
vhost-user-backend = { git = "https://github.com/XanClic/vhost.git", branch = "vm-memory-0.18" }
24 changes: 13 additions & 11 deletions staging/Cargo.lock

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

6 changes: 5 additions & 1 deletion staging/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ vhost = { version = "0.15", features = ["vhost-user-backend"] }
vhost-user-backend = "0.21"
virtio-bindings = "0.2.5"
virtio-queue = "0.17"
vm-memory = "0.17.1"
vm-memory = "0.18"
vmm-sys-util = "0.15"
[patch.crates-io]
virtio-queue = { git = "https://github.com/luigix25/vm-virtio.git", branch = "fix_vsock" }
vhost = { git = "https://github.com/XanClic/vhost.git", branch = "vm-memory-0.18" }
vhost-user-backend = { git = "https://github.com/XanClic/vhost.git", branch = "vm-memory-0.18" }
2 changes: 1 addition & 1 deletion staging/vhost-device-video/src/vhu_video_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use log::{debug, warn};
use vhost_user_backend::{VringEpollHandler, VringRwLock, VringT};
use virtio_queue::{desc::split::Descriptor as SplitDescriptor, QueueOwnedT};
use vm_memory::{
ByteValued, Bytes, GuestAddress, GuestAddressSpace, GuestMemory, GuestMemoryAtomic,
ByteValued, Bytes, GuestAddress, GuestAddressSpace, GuestMemoryAtomic, GuestMemoryBackend,
GuestMemoryMmap,
};
use vmm_sys_util::epoll::EventSet;
Expand Down
2 changes: 1 addition & 1 deletion vhost-device-gpu/src/backend/gfxstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use vhost::vhost_user::{
GpuBackend,
};
use vhost_user_backend::{VringRwLock, VringT};
use vm_memory::{GuestAddress, GuestMemory, GuestMemoryMmap, VolatileSlice};
use vm_memory::{GuestAddress, GuestMemoryBackend, GuestMemoryMmap, VolatileSlice};
use vmm_sys_util::eventfd::EventFd;

use crate::{
Expand Down
2 changes: 1 addition & 1 deletion vhost-device-gpu/src/backend/virgl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use virglrenderer::{
FenceHandler, Iovec, VirglRenderer, VirglRendererFlags, VirglResource,
VIRGL_HANDLE_TYPE_MEM_DMABUF,
};
use vm_memory::{GuestAddress, GuestMemory, GuestMemoryMmap, VolatileSlice};
use vm_memory::{GuestAddress, GuestMemoryBackend, GuestMemoryMmap, VolatileSlice};
use vmm_sys_util::eventfd::EventFd;

use crate::{
Expand Down
2 changes: 1 addition & 1 deletion vhost-device-gpu/src/testutils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use virtio_queue::{
Queue, QueueT,
};
use vm_memory::{
Bytes, GuestAddress, GuestAddressSpace, GuestMemory, GuestMemoryAtomic, GuestMemoryMmap,
Bytes, GuestAddress, GuestAddressSpace, GuestMemoryAtomic, GuestMemoryBackend, GuestMemoryMmap,
};
use vmm_sys_util::eventfd::EventFd;

Expand Down
2 changes: 1 addition & 1 deletion vhost-device-vsock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ vhost = { workspace = true }
vhost-user-backend = { workspace = true }
virtio-bindings = { workspace = true }
virtio-queue = { workspace = true }
virtio-vsock = "0.11"
virtio-vsock = "0.12"
vm-memory = { workspace = true }
vmm-sys-util = { workspace = true }
figment = { version = "0.10.19", features = ["yaml"] }
Expand Down
3 changes: 3 additions & 0 deletions vhost-device-vsock/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ mod vhu_vsock;
mod vhu_vsock_thread;
mod vsock_conn;

#[cfg(test)]
mod test_utils;

use std::{
any::Any,
collections::HashMap,
Expand Down
Loading