Raphael Norwitz 2d9da9dff3 Refactor vhost_user_set_mem_table functions
vhost_user_set_mem_table() and vhost_user_set_mem_table_postcopy() have
gotten convoluted, and have some identical code.

This change moves the logic populating the VhostUserMemory struct and
fds array from vhost_user_set_mem_table() and
vhost_user_set_mem_table_postcopy() to a new function,
vhost_user_fill_set_mem_table_msg().

No functionality is impacted.

Signed-off-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Signed-off-by: Peter Turschmid <peter.turschm@nutanix.com>
Message-Id: <1585132506-13316-1-git-send-email-raphael.norwitz@nutanix.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2020-05-04 10:25:03 -04:00
..
2020-03-10 16:12:49 +01:00
2020-04-30 15:45:34 +01:00
2020-05-04 10:25:02 -04:00
2020-04-30 15:45:34 +01:00
2019-10-28 19:06:47 +01:00
2020-05-04 10:25:02 -04:00
2020-03-05 12:18:08 -05:00
2019-12-17 09:01:14 +01:00
2019-12-17 09:01:14 +01:00