vhost: make host memory mapping more generic
authorHuawei Xie <huawei.xie@intel.com>
Mon, 23 Feb 2015 17:36:28 +0000 (17:36 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 00:38:13 +0000 (01:38 +0100)
commitc89d3e5afd35e5b12a1056c3667ddfd28fc260c9
tree28c8c126bebda327521d6a6a96461f49dba56e1f
parent6ca9df28126ebf351f8ffc9c18299b6b36799382
vhost: make host memory mapping more generic

This functions accepts a virtual address and pid(qemu), and maps it into
current process(vhost)'s address space.

The memory behind the virtual address should be backed by a file,
and virtual address should be the starting address.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Tetsuya Mukawa <mukawa@igel.co.jp>
lib/librte_vhost/vhost_cuse/virtio-net-cdev.c