Re: [PATCH] Refactor vhost_user_set_mem_table functions

2020-03-29 Thread Michael S. Tsirkin
On Wed, Mar 25, 2020 at 06:35:06AM -0400, Raphael Norwitz wrote: > 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

Re: [PATCH] Refactor vhost_user_set_mem_table functions

2020-03-26 Thread Marc-André Lureau
On Thu, Mar 26, 2020 at 6:39 AM Raphael Norwitz wrote: > > 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

[PATCH] Refactor vhost_user_set_mem_table functions

2020-03-25 Thread Raphael Norwitz
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,