vhost-vdpa: introduce descriptor group backend feature
authorSi-Wei Liu <si-wei.liu@oracle.com>
Wed, 18 Oct 2023 17:14:42 +0000 (20:14 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Nov 2023 13:19:55 +0000 (09:19 -0400)
commit7db0d6027e69f47431800b510192436563ba415b
tree8e59125cf20af68e38ef87fc121767d2f44c00f8
parenta72cac6067fdfde280ece0ec5c055659a8de6508
vhost-vdpa: introduce descriptor group backend feature

Userspace knows if the device has dedicated descriptor group or not
by checking this feature bit.

It's only exposed if the vdpa driver backend implements the
.get_vq_desc_group() operation callback. Userspace trying to negotiate
this feature when it or the dependent _F_IOTLB_ASID feature hasn't
been exposed will result in an error.

Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20231018171456.1624030-5-dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Si-Wei Liu <si-wei.liu@oracle.com>
Tested-by: Si-Wei Liu <si-wei.liu@oracle.com>
Tested-by: Lei Yang <leiyang@redhat.com>
drivers/vhost/vdpa.c
include/uapi/linux/vhost_types.h