]> 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)
commit7e82f63dca1c27c6a272634384c6f8171564cc02
treeec745c48fc32434571ad37553b3843c6e07c1372
parent54df79cb1c10cbbc0c9c14feda3d331394a9a8c7
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