Skip to content

Commit 72062c0

Browse files
dependabot[bot]stefano-garzarella
authored andcommitted
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](rust-vmm/vm-memory@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] <[email protected]> [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 <[email protected]>
1 parent 12d4038 commit 72062c0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ lto = true
1515
codegen-units = 1
1616

1717
[workspace.dependencies]
18-
vm-memory = "0.16.0"
18+
vm-memory = "0.17.1"
1919
vmm-sys-util = "0.15.0"

fuzz/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ memfd = "0.6.3"
2020
virtio-queue = { path = "../virtio-queue", features = ["test-utils"] }
2121
virtio-vsock = { path = "../virtio-vsock" }
2222
virtio-queue-ser = { path = "../virtio-queue-ser" }
23-
vm-memory = { version = "0.16.0", features = ["backend-mmap", "backend-atomic"] }
23+
vm-memory = { version = "0.17.1", features = ["backend-mmap", "backend-atomic"] }
2424
common = { path = "common" }
2525
virtio-blk = { path = "../virtio-blk", features = ["backend-stdio"] }
2626

fuzz/common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ virtio-queue = { path = "../../virtio-queue", features = ["test-utils"] }
1313
virtio-vsock = { path = "../../virtio-vsock" }
1414
virtio-queue-ser = { path = "../../virtio-queue-ser" }
1515
virtio-blk = { path = "../../virtio-blk" }
16-
vm-memory = { version = "0.16.0", features = ["backend-mmap", "backend-atomic"] }
16+
vm-memory = { version = "0.17.1", features = ["backend-mmap", "backend-atomic"] }

fuzz/common/src/vsock.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,15 @@ mod tests {
213213
let header_slice = packet.header_slice();
214214
functions.push(VsockFunction::HeaderSlice);
215215
assert_eq!(
216-
header_slice.as_ptr(),
216+
header_slice.ptr_guard().as_ptr(),
217217
mem.get_host_address(GuestAddress(HEADER_WRITE_ADDR))
218218
.unwrap()
219219
);
220220

221221
let data_slice = packet.data_slice().unwrap();
222222
functions.push(VsockFunction::DataSlice);
223223
assert_eq!(
224-
data_slice.as_ptr(),
224+
data_slice.ptr_guard().as_ptr(),
225225
mem.get_host_address(GuestAddress(DATA_WRITE_ADDR)).unwrap()
226226
);
227227

0 commit comments

Comments
 (0)