[PATCH 05/12] vhost-vdpa: add comment for VHOST_SET_LOG_BASE not supported

Weimin Xiong <[email protected]>
Newsgroups dev.linux.lists.virtualization
Message-ID <[email protected]>
From: xiongweimin <[email protected]>

Add a comment explaining why VHOST_SET_LOG_BASE and VHOST_SET_LOG_FD
ioctls are not supported in vhost-vdpa. The vDPA devices use their own
logging mechanism through the vdpa bus instead.

Signed-off-by: Weimin Xiong <[email protected]>
Co-authored-by: Cursor <[email protected]>
---
 drivers/vhost/vdpa.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c
index a18ed439e..6ddd5f0f9 100644
--- a/drivers/vhost/vdpa.c
+++ b/drivers/vhost/vdpa.c
@@ -848,6 +848,9 @@ static long vhost_vdpa_unlocked_ioctl(struct file *filep,
 		if (copy_to_user(argp, &v->vdpa->nas, sizeof(v->vdpa->nas)))
 			r = -EFAULT;
 		break;
+	/* vDPA devices use their own logging mechanism through the bus
+	 * and don't support the traditional vhost-user log ioctls.
+	 */
 	case VHOST_SET_LOG_BASE:
 	case VHOST_SET_LOG_FD:
 		r = -ENOIOCTLCMD;
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.