cloud-hypervisor/vhost_user_block
Sebastien Boeuf a4859ffe85 virtio-devices: Optimize add_used() usage
Now that we rely on pop_descriptor_chain() rather than iter() to iterate
over a queue, there's no more borrow on the queue itself, meaning we can
invoke add_used() directly for the iteration loop. This simplifies the
processing of the queues for each virtio device, and bring some possible
performance improvement given we don't have to iterate twice over the
list of descriptors to invoke add_used().

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2022-07-29 17:41:32 +01:00
..
src virtio-devices: Optimize add_used() usage 2022-07-29 17:41:32 +01:00
Cargo.toml virtio: Port codebase to the latest virtio-queue version 2022-07-29 17:41:32 +01:00