RE: [PATCH v4] vhost: fix physical address mapping

2021-11-17 Thread Ding, Xuan
Hi Maxime, >-Original Message- >From: Ding, Xuan >Sent: Tuesday, November 16, 2021 4:24 PM >To: Xia, Chenbo ; maxime.coque...@redhat.com >Cc: dev@dpdk.org; Hu, Jiayu ; Wang, YuanX >; He, Xingguang >Subject: RE: [PATCH v4] vhost: fix physical address

RE: [PATCH v4] vhost: fix physical address mapping

2021-11-16 Thread Ding, Xuan
Hi Chenbo, > -Original Message- > From: Xia, Chenbo > Sent: 2021年11月16日 15:48 > To: Ding, Xuan ; maxime.coque...@redhat.com > Cc: dev@dpdk.org; Hu, Jiayu ; Wang, YuanX > ; He, Xingguang > Subject: RE: [PATCH v4] vhost: fix physical address mapping > &

RE: [PATCH v4] vhost: fix physical address mapping

2021-11-15 Thread Xia, Chenbo
> -Original Message- > From: Ding, Xuan > Sent: Monday, November 15, 2021 8:32 PM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; Wang, YuanX > ; He, Xingguang ; Ding, Xuan > > Subject: [PATCH v4] vhost: fix physical address mapping

[PATCH v4] vhost: fix physical address mapping

2021-11-15 Thread Xuan Ding
When choosing IOVA as PA mode, IOVA is likely to be discontinuous, which requires page by page mapping for DMA devices. To be consistent, this patch implements page by page mapping instead of mapping at the region granularity for both IOVA as VA and PA mode. Fixes: 7c61fa08b716 ("vhost: enable IOM