In addition to bringing the features from the new vhost crate, this
fixes the breakage caused by rust-vmm/vmm-sys-util#135
Signed-off-by: Sergio Lopez <slp@redhat.com>
The builds are failing since the remote branch's name is changed to
main from master. Fix it by adding the rev for virtio-queue.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
The main change is that Queue now requires a type parameter of
something that implements GuestAddressSpace. As we already switched to
using GuestMemoryAtomic in a previous commit, we just need to add the
annotations.
There's also a minor change to access Queue::next_avail using
accessors instead of the field.
Signed-off-by: Sergio Lopez <slp@redhat.com>
GuestMemoryAtomic enables support for mutable memory maps, and also
acts as a convenient wrapper around GuestMemory without its lifetime
restrictions.
Signed-off-by: Sergio Lopez <slp@redhat.com>