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
