diff options
author | Wu Zongyong <wuzongyong@linux.alibaba.com> | 2021-10-29 17:14:47 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-11-01 04:30:35 -0400 |
commit | 30a03dfcbbdac22ade72a38b953e0709fbf35baa (patch) | |
tree | 1f9d689927cefa85ac5cd508052ad52ae9404363 /drivers/vdpa | |
parent | c53e5d1b5ea46cfd6acb4a51c324b2ec03e89e76 (diff) | |
download | lwn-30a03dfcbbdac22ade72a38b953e0709fbf35baa.tar.gz lwn-30a03dfcbbdac22ade72a38b953e0709fbf35baa.zip |
virtio_vdpa: setup correct vq size with callbacks get_vq_num_{max,min}
For the devices which implement the get_vq_num_min callback, the driver
should not negotiate with virtqueue size with the backend vdpa device if
the value returned by get_vq_num_min equals to the value returned by
get_vq_num_max.
This is useful for vdpa devices based on legacy virtio specfication.
Signed-off-by: Wu Zongyong <wuzongyong@linux.alibaba.com>
Link: https://lore.kernel.org/r/bc0551cec6c3f3dd9424b678b7c22d882aebab3a.1635493219.git.wuzongyong@linux.alibaba.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vdpa')
0 files changed, 0 insertions, 0 deletions