]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32a7578e9bcfa7396b94f3732d66ab0723bfd57e
treeec745c48fc32434571ad37553b3843c6e07c1372
parentf55551fd65fd06ec3d43253c39567d3eea993dad
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