Skip to content

Commit 637969d

Browse files
ikichavireshk
authored andcommitted
vsock: Increase NUM_QUEUES to 3
In virtio standard, vsock uses 3 vqs. crosvm expects 3 vqs from vhost-user-vsock impl, but this vhost-user-vsock device sets up only 2 vqs because event vq isn't handled. And it causes crash in crosvm. To avoid crash in crosvm, I increase NUM_QUEUES to 3 Signed-off-by: Jeongik Cha <[email protected]>
1 parent c2ba07d commit 637969d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/vsock/src/vhu_vsock.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use crate::vhu_vsock_thread::*;
2626

2727
pub(crate) type CidMap = HashMap<u64, (Arc<RwLock<RawPktsQ>>, EventFd)>;
2828

29-
const NUM_QUEUES: usize = 2;
29+
const NUM_QUEUES: usize = 3;
3030
const QUEUE_SIZE: usize = 256;
3131

3232
// New descriptors pending on the rx queue

0 commit comments

Comments
 (0)