vhost-user: fix shared object lookup handler logic
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest1 patch 5 repliesIn review
- v31 patch 3 repliesSuperseded
- v11 patch 2 repliesSuperseded
Changes in v4 from the cover letter
- Base the branch on [PATCH v10 0/7] vhost-user: Add SHMEM_MAP/UNMAP requests
- Add reply_ack = false; for SHMEM_MAP/UNMAP handlers.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | vhost-user: fix shared object lookup handler logichw/ | +15 | 5 replies |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Stefano Garzarella |
|---|---|
| 1/1 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/1] vhost-user: fix shared object lookup handler logic
v3->v4:
- Base the branch on [PATCH v10 0/7] vhost-user: Add SHMEM_MAP/UNMAP requests
- Add reply_ack = false; for SHMEM_MAP/UNMAP handlers.
v4 is based on:
[PATCH v10 0/7] vhost-user: Add SHMEM_MAP/UNMAP requests
Based-on: <[email protected]>
Refactor backend_read() function and add a reply_ack variable to have the option for handlers to force tweak whether they should send a reply or not without depending on VHOST_USER_NEED_REPLY_MASK flag.
This fixes an issue with vhost_user_backend_handle_shared_object_lookup() logic, as the error path was not closing the backend channel correctly. So, we can remove the reply call from within the handler, make sure it returns early on errors as other handlers do and set the reply_ack variable on backend_read() to true to ensure that it will send a response, thus keeping the original intent.
Albert Esteve (1):
vhost-user: fix shared object lookup handler logic
hw/virtio/vhost-user.c | 42 +++++++++++++++--------------------------- 1 file changed, 15 insertions(+), 27 deletions(-)
Signature · 1 line
2.49.0