Skip to content
Closed
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
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog

## Upcoming version
## Unreleased

### Added
### Changed
### Fixed
### Removed

## \[v0.17.0\]

### Added

Expand Down
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vm-memory"
version = "0.16.1"
version = "0.17.0"
description = "Safe abstractions for accessing the VM physical memory"
keywords = ["memory"]
categories = ["memory-management"]
Expand All @@ -23,17 +23,17 @@ xen = ["backend-mmap", "bitflags", "vmm-sys-util"]
libc = { version = "0.2.39", optional = true }
arc-swap = { version = "1.0.0", optional = true }
bitflags = { version = "2.4.0", optional = true }
thiserror = "1.0.40"
vmm-sys-util = { version = "0.12.1", optional = true }
thiserror = "2.0.12"
vmm-sys-util = { version = "0.14.0", optional = true }

[target.'cfg(target_family = "windows")'.dependencies.winapi]
version = "0.3"
features = ["errhandlingapi", "sysinfoapi"]

[dev-dependencies]
criterion = "0.5.0"
criterion = "0.6.0"
matches = "0.1.0"
vmm-sys-util = "0.12.1"
vmm-sys-util = "0.14.0"

[[bench]]
name = "main"
Expand Down
4 changes: 3 additions & 1 deletion benches/guest_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause
#![cfg(feature = "backend-mmap")]

pub use criterion::{black_box, Criterion};
use std::hint::black_box;

pub use criterion::Criterion;

use vm_memory::bitmap::Bitmap;
use vm_memory::{GuestAddress, GuestMemory, GuestMemoryMmap};
Expand Down
2 changes: 1 addition & 1 deletion benches/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

extern crate criterion;

pub use criterion::{black_box, criterion_group, criterion_main, Criterion};
pub use criterion::{criterion_group, criterion_main, Criterion};
#[cfg(feature = "backend-mmap")]
use vm_memory::{GuestAddress, GuestMemoryMmap};

Expand Down
3 changes: 2 additions & 1 deletion benches/mmap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ extern crate criterion;
extern crate vm_memory;

use std::fs::{File, OpenOptions};
use std::hint::black_box;
use std::mem::size_of;
use std::path::Path;

use criterion::{black_box, Criterion};
use criterion::Criterion;

use vm_memory::{ByteValued, Bytes, GuestAddress, GuestMemory};

Expand Down
4 changes: 3 additions & 1 deletion benches/volatile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
//
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause

pub use criterion::{black_box, Criterion};
use std::hint::black_box;

pub use criterion::Criterion;
use vm_memory::volatile_memory::VolatileMemory;
use vm_memory::VolatileSlice;

Expand Down