examples/vhost: hpa regions for zero copy
authorHuawei Xie <huawei.xie@intel.com>
Mon, 20 Oct 2014 04:38:15 +0000 (12:38 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 23 Oct 2014 09:59:57 +0000 (11:59 +0200)
commit9915bb1f212a62ff2e69ffdd4cb4739207fd1c53
treefaadb0b648a2091e47a44c1921db50f584c698ee
parente571e6b472a1e52eb39d4ded937ef426f7cd0be2
examples/vhost: hpa regions for zero copy

check_hpa_regions, fill_hpa_memory_regions and hpa memory region
data structure are added back from old virtio-net.c.

Add hpa (host physical address) region generation/destroy logic.
gpa<->hpa memory translation regions are generated at new_device,
when a virtio device is ready for packet processing.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
examples/vhost/main.c
examples/vhost/main.h