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() );