The size of a virtqueue is a per vq configuration. This series introduces a new operation function get_vq_size to vdpa_config_ops, to help reporting per vq size. vhost_vdpa and virtio_vdpa then initialize each virtqueue buffer individually with its actually size. Please help review Thanks Zhu Lingshan Zhu Lingshan (10): vhost-vdpa: uapi to support reporting per vq size vDPA: introduce get_vq_size to vdpa_config_ops vDPA/ifcvf: implement vdpa_config_ops.get_vq_size vp_vdpa: implement vdpa_config_ops.get_vq_size eni_vdpa: implement vdpa_config_ops.get_vq_size vdpa_sim: implement vdpa_config_ops.get_vq_size for vDPA simulator vduse: implement vdpa_config_ops.get_vq_size for vduse virtio_vdpa: create vqs with the actual size vDPA/ifcvf: get_max_vq_size to return max size vDPA/ifcvf: implement vdpa_config_ops.get_vq_num_min drivers/vdpa/alibaba/eni_vdpa.c | 8 ++++++++ drivers/vdpa/ifcvf/ifcvf_base.c | 11 +++++------ drivers/vdpa/ifcvf/ifcvf_base.h | 2 ++ drivers/vdpa/ifcvf/ifcvf_main.c | 15 +++++++++++++++ drivers/vdpa/vdpa_sim/vdpa_sim.c | 12 ++++++++++++ drivers/vdpa/vdpa_user/vduse_dev.c | 12 ++++++++++++ drivers/vdpa/virtio_pci/vp_vdpa.c | 8 ++++++++ drivers/vhost/vdpa.c | 8 ++++++++ drivers/virtio/virtio_vdpa.c | 5 ++++- include/linux/vdpa.h | 5 +++++ include/uapi/linux/vhost.h | 7 +++++++ 11 files changed, 86 insertions(+), 7 deletions(-) -- 2.39.3