mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-05 11:31:14 +00:00
7c19ae92b8
This crate contains a new definition of the Queue, AvailIter, DescriptorChain and Descriptor structures forked from the upstream crate rust-vmm/vm-virtio d62f2246568d4f544e848b23c025b268effac5ca. The following patches have been applied on top of this base in order to make it work correctly with Cloud Hypervisor requirements: - Add MSI vector field to the Queue In order to help with MSI/MSI-X support, it is convenient to store the value of the interrupt vector inside the Queue directly. - Handle address translations For devices with access to data in memory being translated, we add to the Queue the ability to translate the address stored in the descriptor. It is very helpful as it performs the translation right after the untranslated address is read from memory, avoiding any errors from happening from the consumer's crate perspective. It also allows the consumer to reduce greatly the amount of duplicated code for applying the translation in many different places. - Add helpers for Queue structure They are meant to help crate's consumers getting/setting information about the Queue. These patches can be found on the 'ch' branch from the Cloud Hypervisor fork: https://github.com/cloud-hypervisor/vm-virtio.git Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
18 lines
379 B
TOML
18 lines
379 B
TOML
[package]
|
|
name = "virtio-queue"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
description = "virtio queue implementation"
|
|
repository = "https://github.com/rust-vmm/vm-virtio"
|
|
keywords = ["virtio"]
|
|
readme = "README.md"
|
|
license = "Apache-2.0 OR MIT"
|
|
edition = "2018"
|
|
|
|
[features]
|
|
test-utils = []
|
|
|
|
[dependencies]
|
|
vm-memory = "0.6.0"
|
|
vmm-sys-util = ">=0.8.0"
|
|
log = ">=0.4.6" |