numam-dpdk/lib/librte_vhost
Yuanhan Liu 552e8fd3d2 vhost: simplify memory regions handling
Due to history reason (that vhost-cuse comes before vhost-user), some
fields for maintaining the vhost-user memory mappings (such as mmapped
address and size, with those we then can unmap on destroy) are kept in
"orig_region_map" struct, a structure that is defined only in vhost-user
source file.

The right way to go is to remove the structure and move all those fields
into virtio_memory_region struct. But we simply can't do that before,
because it breaks the ABI.

Now, thanks to the ABI refactoring, it's never been a blocking issue
any more. And here it goes: this patch removes orig_region_map and
redefines virtio_memory_region, to include all necessary info.

With that, we can simplify the guest/host address convert a bit.

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>
2016-10-12 09:44:56 +02:00
..
fd_man.c vhost: remove sub-directory 2016-09-13 05:25:08 +02:00
fd_man.h vhost: remove sub-directory 2016-09-13 05:25:08 +02:00
Makefile vhost: refactor code structure 2016-09-13 05:25:08 +02:00
rte_vhost_version.map vhost: export queue free entries 2016-06-22 09:02:58 +02:00
rte_virtio_net.h vhost: remove obsolete comment 2016-09-13 05:25:09 +02:00
socket.c vhost: refactor code structure 2016-09-13 05:25:08 +02:00
vhost_user.c vhost: simplify memory regions handling 2016-10-12 09:44:56 +02:00
vhost_user.h vhost: refactor code structure 2016-09-13 05:25:08 +02:00
vhost.c vhost: support indirect Tx descriptors 2016-09-28 02:18:33 +02:00
vhost.h vhost: simplify memory regions handling 2016-10-12 09:44:56 +02:00
virtio_net.c vhost: support indirect Tx descriptors 2016-09-28 02:18:33 +02:00