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

This patch moves the registration of postcopy 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