The functions sending vhost-user set memory table messages are getting convoluted. The amount of nested logic is getting in the way of my development and it looks like some identical logic should be refractored out anyways. Here’s an RFC which cleans these functions up a bit. Raphael Raphael Norwitz (1): vhost-user: Refractor vhost_user_set_mem_table Functions hw/virtio/vhost-user.c | 140 +++++++++++++++++++++++-------------------------- 1 file changed, 65 insertions(+), 75 deletions(-) -- 1.8.3.1