Re: [PATCH v3 5/6] vhost-vdpa: backend feature should set only once

2022-05-06 Thread Stefano Garzarella
On Thu, May 05, 2022 at 09:54:33PM -0700, Si-Wei Liu wrote: The vhost_vdpa_one_time_request() branch in vhost_vdpa_set_backend_cap() incorrectly sends down ioctls on vhost_dev with non-zero index. This may end up with multiple VHOST_SET_BACKEND_FEATURES ioctl calls sent down on the vhost-vdpa fd

[PATCH v3 5/6] vhost-vdpa: backend feature should set only once

2022-05-05 Thread Si-Wei Liu
The vhost_vdpa_one_time_request() branch in vhost_vdpa_set_backend_cap() incorrectly sends down ioctls on vhost_dev with non-zero index. This may end up with multiple VHOST_SET_BACKEND_FEATURES ioctl calls sent down on the vhost-vdpa fd that is shared between all these vhost_dev's. To fix it, send