[dpdk-stable] [PATCH v6 2/3] vhost: convert buffer addresses to GPA for logging

Maxime Coquelin maxime.coquelin at redhat.com
Fri Oct 11 17:16:11 CEST 2019



On 10/9/19 1:54 PM, Adrian Moreno wrote:
> Add IOVA versions of dirty page logging functions.
> 
> Note that the API facing rte_vhost_log_write is not modified.
> So, make explicit that it expects the address in GPA space.
> 
> Fixes: 69c90e98f483 ("vhost: enable IOMMU support")
> Cc: maxime.coquelin at redhat.com
> Cc: stable at dpdk.org
> Signed-off-by: Adrian Moreno <amorenoz at redhat.com>
> 
> --
> v4 Changes: Add vhost_log_write_iova (in adition to _cache_ version)
>             and use it in vdpa (non-batched) dirty page logging
> ---
>  lib/librte_vhost/rte_vhost.h  |  2 +-
>  lib/librte_vhost/vdpa.c       |  3 ++-
>  lib/librte_vhost/vhost.c      | 40 +++++++++++++++++++++++++++++++++++
>  lib/librte_vhost/vhost.h      | 31 +++++++++++++++++++++++++++
>  lib/librte_vhost/virtio_net.c | 12 ++++++-----
>  5 files changed, 81 insertions(+), 7 deletions(-)

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>



More information about the stable mailing list