Re: [dpdk-dev] [PATCH] vhost: translate incoming log address to gpa

2019-09-23 Thread Tiwei Bie
On Mon, Sep 23, 2019 at 12:28:35PM +0200, Adrian Moreno wrote: > On 9/23/19 9:25 AM, Tiwei Bie wrote: > > On Tue, Sep 17, 2019 at 04:49:00PM +0200, Adrian Moreno wrote: > >> When IOMMU is enabled the incoming log address is in IOVA space. In that > >> case, look in IOTLB table and translate the res

Re: [dpdk-dev] [PATCH] vhost: translate incoming log address to gpa

2019-09-23 Thread Adrian Moreno
On 9/23/19 9:25 AM, Tiwei Bie wrote: > On Tue, Sep 17, 2019 at 04:49:00PM +0200, Adrian Moreno wrote: >> When IOMMU is enabled the incoming log address is in IOVA space. In that >> case, look in IOTLB table and translate the resulting HVA to GPA. >> >> If IOMMU is not enabled, the incoming log addr

Re: [dpdk-dev] [PATCH] vhost: translate incoming log address to gpa

2019-09-23 Thread Tiwei Bie
On Tue, Sep 17, 2019 at 04:49:00PM +0200, Adrian Moreno wrote: > When IOMMU is enabled the incoming log address is in IOVA space. In that > case, look in IOTLB table and translate the resulting HVA to GPA. > > If IOMMU is not enabled, the incoming log address is already a GPA so no > transformatio

[dpdk-dev] [PATCH] vhost: translate incoming log address to gpa

2019-09-17 Thread Adrian Moreno
When IOMMU is enabled the incoming log address is in IOVA space. In that case, look in IOTLB table and translate the resulting HVA to GPA. If IOMMU is not enabled, the incoming log address is already a GPA so no transformation is needed. This change makes page logging work when IOVA_VA is selecte