From 292a7d55811e85123a18e69ccd4c09c19bd43f0c Mon Sep 17 00:00:00 2001 From: Gleb Karpeev Date: Mon, 29 Jul 2024 14:45:49 +0300 Subject: [PATCH] vhost-user-fs: support new virtio-queue for notification requests 2nd virtio-queue will be used to receive notification requests from guest, it's necessary to refresh the content of the shared directory. Signed-off-by: Gleb Karpeev --- virtio/src/vhost/user/fs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virtio/src/vhost/user/fs.rs b/virtio/src/vhost/user/fs.rs index f08ddd39..cd0554db 100644 --- a/virtio/src/vhost/user/fs.rs +++ b/virtio/src/vhost/user/fs.rs @@ -12,8 +12,8 @@ // The num of high priority queue const VIRIOT_FS_HIGH_PRIO_QUEUE_NUM: usize = 1; -// The num of request queue -const VIRTIO_FS_REQ_QUEUES_NUM: usize = 1; +// The num of request queue, queue-1 for requests, queue-2 for notifications +const VIRTIO_FS_REQ_QUEUES_NUM: usize = 2; // The size of queue for virtio fs const VIRTIO_FS_QUEUE_SIZE: u16 = 128; -- Gitee