vhost: refactor memory regions mapping
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 5 Jan 2021 12:57:28 +0000 (13:57 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 17:07:56 +0000 (18:07 +0100)
commitbe1525c6b4cefb51301557179b66c14da58713ac
tree76754d8c634468282bb6773268435fc309134b2a
parent761ea501cebd19fdb03cb44f299b37139312f537
vhost: refactor memory regions mapping

This patch moves memory region mmaping and related
preparation in a dedicated function in order to simplify
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