cloud-hypervisor/block_util/src
Sebastien Boeuf 0162d73ed8 virtio-queue: Update crate based on latest rust-vmm/vm-virtio
This crate contains up to date definition of the Queue, AvailIter,
DescriptorChain and Descriptor structures forked from the upstream
crate rust-vmm/vm-virtio 27b18af01ee2d9564626e084a758a2b496d2c618.

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

This patch takes care of updating the Cloud Hypervisor code in
virtio-devices and vm-virtio to build correctly with the latest version
of virtio-queue.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2022-01-06 10:02:40 +00:00
..
async_io.rs block_util: Move block device detection into it's own function 2021-12-17 12:42:10 +01:00
fixed_vhd_async.rs block_util, vmm: Add fixed VHD asynchronous implementation 2021-02-01 13:45:08 +00:00
fixed_vhd_sync.rs block_util: Add synchronous support for fixed VHD disk files 2021-02-01 13:45:08 +00:00
lib.rs virtio-queue: Update crate based on latest rust-vmm/vm-virtio 2022-01-06 10:02:40 +00:00
qcow_sync.rs block_util: provide and use AsyncAdaptor trait 2021-12-06 15:20:29 +01:00
raw_async.rs block_util: Implement DiskFile::topology() for raw file types 2021-12-17 12:42:10 +01:00
raw_sync.rs block_util: Implement DiskFile::topology() for raw file types 2021-12-17 12:42:10 +01:00
vhd.rs clippy: Address the issue 'needless-borrow' 2021-06-24 08:55:43 +02:00
vhdx_sync.rs block_util: provide and use AsyncAdaptor trait 2021-12-06 15:20:29 +01:00