vhost: refactor postcopy region registration
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 5 Jan 2021 12:57:26 +0000 (13:57 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 17:07:56 +0000 (18:07 +0100)
commitfc2225dbc5f0c68eb1fd99e9ad9dd2c2ab0b5bce
tree98e666433c8914fbbf6623daf21bf2b189b71f4f
parent1f93bee4e77cb634235a8346ae01297a80a32c4e
vhost: refactor postcopy region registration

This patch moves the registration of memory regions to
userfaultfd to a dedicated function, with the goal of
simplifying VHOST_USER_SET_MEM_TABLE request handling
function.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
lib/librte_vhost/vhost_user.c