]> git.droids-corp.org - dpdk.git/commit
vhost: remove async DMA map status
authorXuan Ding <xuan.ding@intel.com>
Wed, 27 Oct 2021 10:00:26 +0000 (10:00 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 29 Oct 2021 10:32:22 +0000 (12:32 +0200)
commit5fd6e93b7e76e483701453bdd70d455698ed67ce
tree7e4957a8cd15b739146ad289956a3a12285ac27c
parentc28115d775617bae4625f857f06b8b8334742701
vhost: remove async DMA map status

Async DMA map status flag was added to prevent the unnecessary unmap
when DMA devices bound to kernel driver. This brings maintenance cost
for a lot of code. This patch removes the DMA map status by using
rte_errno instead.

This patch relies on the following patch to fix a partial
unmap check in vfio unmapping API.
[1] https://www.mail-archive.com/dev@dpdk.org/msg226464.html

Signed-off-by: Xuan Ding <xuan.ding@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/vhost/vhost.h
lib/vhost/vhost_user.c