Thread (75 messages) flat view 75 messages, 5 authors, 2016-11-29

Re: [PATCH v2 2/7] vhost: get guest/host physical address mappings

From: Maxime Coquelin <hidden>
Date: 2016-09-26 20:17:32


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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help