Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Jason Wang <[email protected]> Signed-off-by: Wu Zongyong <[email protected]> Acked-by: Jason Wang <[email protected]> Link: https://lore.kernel.org/r/f4af5b0abd660d9a29ab6b2f67bd6df10284a230.1635493219.git.wuzongyong@linux.alibaba.com Signed-off-by: Michael S. Tsirkin <[email protected]>
- Loading branch information