vhost: disable reply-ack feature if IOMMU disabled
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 6 Nov 2017 20:38:10 +0000 (21:38 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Nov 2017 13:13:47 +0000 (14:13 +0100)
commit6ea069651e72e6ee282e79e59ea0367d3f2f90e2
treeb4ca45cc51e2b7671f2b7b38a3d4dd1f97c1d1ee
parenta49b617b86fede7ffd311fd03099204998e35529
vhost: disable reply-ack feature if IOMMU disabled

If the application has disabled VIRTIO_F_IOMMU_PLATFORM, disable
VHOST_USER_PROTOCOL_F_REPLY_ACK protocol feature that is only
mandatory with IOMMU for now.

This is done to provide a way for the application to support
multiqueue with old Qemu versions (v2.7.0 to v2.9.0) that have
reply-ack feature broken.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
Tested-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
Acked-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
lib/librte_vhost/vhost_user.c