Re: [PATCH 1/2] vdpa: support per virtqueue max queue size

From: Jason Wang
Date: Wed Jul 07 2021 - 01:39:20 EST



在 2021/7/7 下午12:04, Yongji Xie 写道:
static long vhost_vdpa_get_vring_num(struct vhost_vdpa *v, u16 __user *argp)
{
- struct vdpa_device *vdpa = v->vdpa;
- const struct vdpa_config_ops *ops = vdpa->config;
u16 num;

- num = ops->get_vq_num_max(vdpa);
+ /*
+ * VHOST_VDPA_GET_VRING_NUM asssumes a global max virtqueue
s/asssumes/assumes. Other looks good to me.

Thanks,
Yongji


Will fix.

Thanks