On 09/23/2016 06:13 AM, Yuanhan Liu wrote:
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 <redacted>
---
v2: - use MAP_POPULATE option to make sure the page table will
be already setup while getting the phys address
- do a simple merge if the last 2 pages are continuous
- dump guest pages only in debug mode
---
lib/librte_vhost/vhost.h | 30 +++++++++++++
lib/librte_vhost/vhost_user.c | 100 +++++++++++++++++++++++++++++++++++++++++-
2 files changed, 128 insertions(+), 2 deletions(-)
Reviewed-by: Maxime Coquelin <maxime.coquelin@¶edhat.com>
Thanks,
Maxime