Update virtio-queue to rev cc1fa35

Update virtio-queue dependency to the latest available version, rev
"cc1fa35". This one comes with a number of fixes and new features,
such as QueueGuard and support for big-endian machines.

Signed-off-by: Sergio Lopez <slp@redhat.com>
This commit is contained in:
Sergio Lopez 2021-12-03 12:46:03 +01:00 committed by Jiang Liu
parent 4047c69747
commit 264d46d4c7
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ libc = ">=0.2.39"
log = ">=0.4.6"
vhost = { version = "0.2", features = ["vhost-user-slave"] }
virtio-bindings = "0.1"
virtio-queue = { git = "https://github.com/rust-vmm/vm-virtio", rev = "66cda80" }
virtio-queue = { git = "https://github.com/rust-vmm/vm-virtio", rev = "cc1fa35" }
vm-memory = {version = "0.7", features = ["backend-mmap", "backend-atomic"]}
vmm-sys-util = "0.9"

View file

@ -493,7 +493,7 @@ mod tests {
assert_eq!(vring.queue_next_avail(), 0x20);
vring.set_queue_size(0x200);
assert_eq!(vring.lock().queue.actual_size(), 0x200);
assert_eq!(vring.lock().queue.state.size, 0x200);
vring.set_queue_event_idx(true);
assert_eq!(vring.lock().queue.state.event_idx_enabled, true);