cloud-hypervisor/vm-virtio
Sebastien Boeuf cf707da1a8 vm-virtio: Extend Queue helpers
First, this modifies the existing helpers on how to get indexes for
available and used rings from memory. Instead of updating the queue
through each helper, they are now used as simple getters.

Based on these new getters, we could create a new helper to determine if
the queue has some available descriptors already queued from the driver
side. This helper is going to be particularly helpful when trying to
determine from a virtio thread if a queue is already loaded with some
available buffers that can be used to send information to the guest.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-04-21 21:25:03 +02:00
..
src vm-virtio: Extend Queue helpers 2020-04-21 21:25:03 +02:00
Cargo.toml vm-virtio: Add the ability to serialize a Queue 2020-04-17 19:29:41 +02:00