vhost: support ASID in IOTLB API
authorGautam Dawar <gautam.dawar@xilinx.com>
Wed, 30 Mar 2022 18:03:49 +0000 (23:33 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 31 May 2022 16:44:29 +0000 (12:44 -0400)
commit91233ad711866f4e375742d84ef3ed6aab9daa96
treeec745c48fc32434571ad37553b3843c6e07c1372
parent1cb108994c6830cc6a6e066ad7d9a22ef59fa167
vhost: support ASID in IOTLB API

This patches allows userspace to send ASID based IOTLB message to
vhost. This idea is to use the reserved u32 field in the existing V2
IOTLB message. Vhost device should advertise this capability via
VHOST_BACKEND_F_IOTLB_ASID backend feature.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Gautam Dawar <gdawar@xilinx.com>
Message-Id: <20220330180436.24644-10-gdawar@xilinx.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vdpa.c
drivers/vhost/vhost.c
drivers/vhost/vhost.h
include/uapi/linux/vhost_types.h