On 22/3/24 10:23, Stefano Garzarella wrote:
vhost_vdpa_set_vring_ready() could already fail, but if Linux's
patch [1] will be merged, it may fail with more chance if
userspace does not activate virtqueues before DRIVER_OK when
VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK is not negotiated.

So better check its return value anyway.

[1] 
https://lore.kernel.org/virtualization/[email protected]/T/#u

Acked-by: Eugenio Pérez <[email protected]>
Acked-by: Jason Wang <[email protected]>
Signed-off-by: Stefano Garzarella <[email protected]>
---
Based-on: [email protected]

v1: https://patchew.org/QEMU/[email protected]/
v2:
  - added acks
  - rebased on top of 
https://patchew.org/QEMU/[email protected]/
---
  net/vhost-vdpa.c | 15 ++++++++++++---
  1 file changed, 12 insertions(+), 3 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>


Reply via email to