On 10/9/19 1:54 PM, 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
> transformation is needed.
>
> Fixes: 69c90e98f483 ("vhost: enable IOMMU support")
> Cc: [email protected]
> Cc: [email protected]
> Signed-off-by: Adrian Moreno <[email protected]>
>
> ---
> v6 changes: use PRIx64 macro to fix UB1604-32 build
> v5 changes: Rebase on top of dpdk-next-virtio
> ---
> lib/librte_vhost/vhost.c | 1 +
> lib/librte_vhost/vhost.h | 20 +++++++++++++++++
> lib/librte_vhost/vhost_user.c | 42 ++++++++++++++++++++++++++++++++++-
> 3 files changed, 62 insertions(+), 1 deletion(-)
>
Reviewed-by: Maxime Coquelin <[email protected]>
Thanks,
Maxime