Skip to content
Commit 3b970a58 authored by Wu Zongyong's avatar Wu Zongyong Committed by Michael S. Tsirkin
Browse files

vdpa: add new callback get_vq_num_min in vdpa_config_ops



This callback is optional. For vdpa devices that not support to change
virtqueue size, get_vq_num_min and get_vq_num_max will return the same
value, so that users can choose a correct value for that device.

Suggested-by: default avatarJason Wang <jasowang@redhat.com>
Signed-off-by: default avatarWu Zongyong <wuzongyong@linux.alibaba.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/f4af5b0abd660d9a29ab6b2f67bd6df10284a230.1635493219.git.wuzongyong@linux.alibaba.com
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 5bbfea1e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment