vhost-user: pass message as a pointer to process_message_reply()
commit3cf7daf8c3b0a1c417490741227d910b253796ff
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Wed, 24 May 2017 09:05:20 +0000 (24 11:05 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 25 May 2017 18:25:28 +0000 (25 21:25 +0300)
treef4bca768d9037394f14a4d46e27a2a7e6372b662
parent75ebec11afe49539f71cc1c494e3010f91c86adb
vhost-user: pass message as a pointer to process_message_reply()

process_message_reply() was recently updated to get full message
content instead of only its request field.

There is no need to copy all the struct content into the stack,
so just pass its pointer as const.

Reviewed-by: Jens Freimann <jfreiman@redhat.com>
Reviewed-by: Zhiyong Yang <zhiyong.yang@intel.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
hw/virtio/vhost-user.c