diff --git a/Cargo.toml b/Cargo.toml index f69c592..835be1f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/vring.rs b/src/vring.rs index 0207e82..7594cca 100644 --- a/src/vring.rs +++ b/src/vring.rs @@ -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);