vhost: prevent zero copy mode if IOMMU is on
authorAdrian Moreno <amorenoz@redhat.com>
Wed, 9 Oct 2019 11:54:32 +0000 (13:54 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:09 +0000 (16:43 +0200)
commitc49197ff29fbd67e19a927683b7100dba602718d
tree1b55686ab1fe40c14217d3da7a904fb853b228ab
parent1fc3b3f06aa9c79c749e8587859d75d237ba9161
vhost: prevent zero copy mode if IOMMU is on

The simultaneous use of dequeue_zero_copy and IOMMU is problematic.
Not only because IOVA_VA mode is not supported but also because the
potential invalidation of guest pages while the buffers are in use,
is not handled.

Prevent these two features to be enabled simultaneously.

Fixes: 69c90e98f483 ("vhost: enable IOMMU support")
Cc: stable@dpdk.org
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/socket.c