vhost: avoid IOTLB mempool allocation while IOMMU disabled
authorJunjie Wan <wanjunjie@bytedance.com>
Tue, 2 Feb 2021 08:38:45 +0000 (16:38 +0800)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 7 Apr 2021 06:54:05 +0000 (08:54 +0200)
commit968bbc7e2e50ca9fd68285589af236734fd2f920
treefa6b8b339072c3daaf864bce0aa4613d2508da57
parent98da5545be5180843e61a4dacdc0612b3ae64da4
vhost: avoid IOTLB mempool allocation while IOMMU disabled

If vhost device's IOMMU feature is disabled, IOTLB mempool allocation
is unnecessary.

Reported-by: Peng He <hepeng.0320@bytedance.com>
Signed-off-by: Junjie Wan <wanjunjie@bytedance.com>
Reviewed-by: Zhihong Wang <wangzhihong.wzh@bytedance.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost.c
lib/librte_vhost/vhost_user.c