From 47cabf85edd35f9e149c11bfdd469a1323d7ee1f Mon Sep 17 00:00:00 2001 From: Alexandru Agache Date: Thu, 5 May 2022 10:11:35 +0300 Subject: [PATCH] queue: changes for 0.3.0 release Signed-off-by: Alexandru Agache --- crates/virtio-queue/CHANGELOG.md | 20 +++++++++++++++++--- crates/virtio-queue/Cargo.toml | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/crates/virtio-queue/CHANGELOG.md b/crates/virtio-queue/CHANGELOG.md index 6bc2d5f5..02bc3e87 100644 --- a/crates/virtio-queue/CHANGELOG.md +++ b/crates/virtio-queue/CHANGELOG.md @@ -1,10 +1,24 @@ -# Unreleased +# v0.3.0 ## Added -- QueueStateT::size(): [#153](https://github.com/rust-vmm/vm-virtio/pull/153) +- [[#148]](https://github.com/rust-vmm/vm-virtio/pull/148): `QueueStateOwnedT` trait that stands + for queue objects which are exclusively owned and accessed by a single thread of execution. +- [[#148]](https://github.com/rust-vmm/vm-virtio/pull/148): Added the `pop_descriptor_chain` + method, which can be used to consume descriptor chains from the available ring without + using an iterator, to `QueueStateT` and `QueueGuard`. Also added `go_to_previous_position()` + to `QueueGuard`, which enables decrementing the next available index by one position, which + effectively undoes the consumption of a descriptor chain in some use cases. +- [[#151]](https://github.com/rust-vmm/vm-virtio/pull/151): Added `MockSplitQueue::add_desc_chain()`, + which places a descriptor chain at the specified offset in the descriptor table. +- [[#153]](https://github.com/rust-vmm/vm-virtio/pull/153): Added `QueueStateT::size()` to return + the size of the queue. + +## Changed +- The minimum version of the `vm-memory` dependency is now `v0.8.0` +- [[#161]](https://github.com/rust-vmm/vm-virtio/pull/161): Improve the efficiency of `needs_notification` ## Removed -- #[derive(Clone)] for QueueState: [#153](https://github.com/rust-vmm/vm-virtio/pull/153) +- [[#153]](https://github.com/rust-vmm/vm-virtio/pull/153): `#[derive(Clone)]` for `QueueState` # v0.2.0 diff --git a/crates/virtio-queue/Cargo.toml b/crates/virtio-queue/Cargo.toml index dbe285b4..3b65e73a 100644 --- a/crates/virtio-queue/Cargo.toml +++ b/crates/virtio-queue/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "virtio-queue" -version = "0.2.0" +version = "0.3.0" authors = ["The Chromium OS Authors"] description = "virtio queue implementation" repository = "https://github.com/rust-vmm/vm-virtio"