Re: [dpdk-dev] [PATCH v2] vhost: fix add_guest_pages bug

2016-12-05 Thread Yuanhan Liu
On Tue, Dec 06, 2016 at 01:40:52PM +0800, linhaifeng wrote: > 在 2016/12/6 10:28, Yuanhan Liu 写道: > > On Thu, Dec 01, 2016 at 07:42:02PM +0800, Haifeng Lin wrote: > >> When reg_size < page_size the function read in > >> rte_mem_virt2phy would not return, becausue > >> host_user_addr is invalid. > >>

Re: [dpdk-dev] [PATCH v2] vhost: fix add_guest_pages bug

2016-12-05 Thread linhaifeng
在 2016/12/6 10:28, Yuanhan Liu 写道: > On Thu, Dec 01, 2016 at 07:42:02PM +0800, Haifeng Lin wrote: >> When reg_size < page_size the function read in >> rte_mem_virt2phy would not return, becausue >> host_user_addr is invalid. >> >> Signed-off-by: Haifeng Lin >> --- >> v2: >> fix TYPO_SPELLING warni

Re: [dpdk-dev] [PATCH v2] vhost: fix add_guest_pages bug

2016-12-05 Thread Yuanhan Liu
On Thu, Dec 01, 2016 at 07:42:02PM +0800, Haifeng Lin wrote: > When reg_size < page_size the function read in > rte_mem_virt2phy would not return, becausue > host_user_addr is invalid. > > Signed-off-by: Haifeng Lin > --- > v2: > fix TYPO_SPELLING warning > --- > lib/librte_vhost/vhost_user.c |

[dpdk-dev] [PATCH v2] vhost: fix add_guest_pages bug

2016-12-01 Thread Haifeng Lin
When reg_size < page_size the function read in rte_mem_virt2phy would not return, becausue host_user_addr is invalid. Signed-off-by: Haifeng Lin --- v2: fix TYPO_SPELLING warning --- lib/librte_vhost/vhost_user.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/