From 72062c0d70c42f80f9f98c21b1a7a1e00cbdbfc4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 22:05:53 +0000 Subject: [PATCH] build(deps): update vm-memory requirement in the vm-virtio group Updates the requirements on [vm-memory](https://github.com/rust-vmm/vm-memory) to permit the latest version. Updates `vm-memory` to 0.17.1 - [Release notes](https://github.com/rust-vmm/vm-memory/releases) - [Changelog](https://github.com/rust-vmm/vm-memory/blob/v0.16.1/CHANGELOG.md) - [Commits](https://github.com/rust-vmm/vm-memory/compare/v0.16.0...v0.17.1) --- updated-dependencies: - dependency-name: vm-memory dependency-version: 0.17.1 dependency-type: direct:production dependency-group: vm-virtio ... Signed-off-by: dependabot[bot] [SG: Set the right version in the commit message and updated vm-memory also in fuzz/] [SG: Adapted `fuzz/common/src/vsock.rs` to the new vm-memory code] Signed-off-by: Stefano Garzarella --- Cargo.toml | 2 +- fuzz/Cargo.toml | 2 +- fuzz/common/Cargo.toml | 2 +- fuzz/common/src/vsock.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 09c3b382..ced9962d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,5 +15,5 @@ lto = true codegen-units = 1 [workspace.dependencies] -vm-memory = "0.16.0" +vm-memory = "0.17.1" vmm-sys-util = "0.15.0" diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index a66a25d0..9332f6c5 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -20,7 +20,7 @@ memfd = "0.6.3" virtio-queue = { path = "../virtio-queue", features = ["test-utils"] } virtio-vsock = { path = "../virtio-vsock" } virtio-queue-ser = { path = "../virtio-queue-ser" } -vm-memory = { version = "0.16.0", features = ["backend-mmap", "backend-atomic"] } +vm-memory = { version = "0.17.1", features = ["backend-mmap", "backend-atomic"] } common = { path = "common" } virtio-blk = { path = "../virtio-blk", features = ["backend-stdio"] } diff --git a/fuzz/common/Cargo.toml b/fuzz/common/Cargo.toml index 123a5caf..c664ebc9 100644 --- a/fuzz/common/Cargo.toml +++ b/fuzz/common/Cargo.toml @@ -13,4 +13,4 @@ virtio-queue = { path = "../../virtio-queue", features = ["test-utils"] } virtio-vsock = { path = "../../virtio-vsock" } virtio-queue-ser = { path = "../../virtio-queue-ser" } virtio-blk = { path = "../../virtio-blk" } -vm-memory = { version = "0.16.0", features = ["backend-mmap", "backend-atomic"] } +vm-memory = { version = "0.17.1", features = ["backend-mmap", "backend-atomic"] } diff --git a/fuzz/common/src/vsock.rs b/fuzz/common/src/vsock.rs index 9d5e4883..3ba44f38 100644 --- a/fuzz/common/src/vsock.rs +++ b/fuzz/common/src/vsock.rs @@ -213,7 +213,7 @@ mod tests { let header_slice = packet.header_slice(); functions.push(VsockFunction::HeaderSlice); assert_eq!( - header_slice.as_ptr(), + header_slice.ptr_guard().as_ptr(), mem.get_host_address(GuestAddress(HEADER_WRITE_ADDR)) .unwrap() ); @@ -221,7 +221,7 @@ mod tests { let data_slice = packet.data_slice().unwrap(); functions.push(VsockFunction::DataSlice); assert_eq!( - data_slice.as_ptr(), + data_slice.ptr_guard().as_ptr(), mem.get_host_address(GuestAddress(DATA_WRITE_ADDR)).unwrap() );