vhost: get guest/host physical address mappings
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Sun, 9 Oct 2016 07:27:55 +0000 (15:27 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 12 Oct 2016 07:45:09 +0000 (09:45 +0200)
commite246896178e69c31e2f589b45d3acf1e307efe58
tree1726b351a2b5bbcfaed0f7b780da245a1ef23651
parent552e8fd3d2b461e40dc59777d2de738499bc3eaf
vhost: get guest/host physical address mappings

So that we can convert a guest physical address to host physical
address, which will be used in later Tx zero copy implementation.

MAP_POPULATE is set while mmaping guest memory regions, to make
sure the page tables are setup and then rte_mem_virt2phy() could
yield proper physical address.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Tested-by: Qian Xu <qian.q.xu@intel.com>
lib/librte_vhost/vhost.h
lib/librte_vhost/vhost_user.c