mbox series

[0/2] vhost user one time message fixes

Message ID 20230628163927.108171-1-tom.lonergan@nutanix.com
Headers show
Series vhost user one time message fixes | expand

Message

Tom Lonergan June 28, 2023, 4:39 p.m. UTC
Add a missing message to vhost_user_one_time_request, and fix naming for the
function and update the associated comment.

Patch 1:
vhost_user_one_time_request is actually catching messages that are sent once
per device, not only once for the lifetime of the machine. I've renamed the
function to match the functionality and changed the comment to reflect that
as described in [1].

Patch 2:
VHOST_USER_RESET_DEVICE is used in the same cases as VHOST_USER_RESET_OWNER,
so I've added it to per device messages.

[1] https://lore.kernel.org/qemu-devel/20230127083027-mutt-send-email-mst@kernel.org/

Tom Lonergan (2):
  vhost-user: Change one_time to per_device request
  vhost-user: Make RESET_DEVICE a per device message

 hw/virtio/vhost-user.c | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)