vhost: convert buffer addresses to GPA for logging
authorAdrian Moreno <amorenoz@redhat.com>
Wed, 9 Oct 2019 11:54:31 +0000 (13:54 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:09 +0000 (16:43 +0200)
commit1fc3b3f06aa9c79c749e8587859d75d237ba9161
tree73e16f8ba9cdf3f93b6528062e57aa80b0717e05
parentfbda9f1459271435df3ea2575ca5845d04733466
vhost: convert buffer addresses to GPA for logging

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: stable@dpdk.org
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/rte_vhost.h
lib/librte_vhost/vdpa.c
lib/librte_vhost/vhost.c
lib/librte_vhost/vhost.h
lib/librte_vhost/virtio_net.c