]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa: support exposing the config size to userspace
authorLongpeng <longpeng2@huawei.com>
Tue, 15 Mar 2022 03:25:51 +0000 (11:25 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 28 Mar 2022 20:53:00 +0000 (16:53 -0400)
commit1163db6bffe2c8cf25c4a2526eafee862f480be5
treef31e76d3b574d121c152341b47e065d2b4f4d1ab
parent21048d21cae0f138ddacb69a37a6948be5c6ec21
vdpa: support exposing the config size to userspace

- GET_CONFIG_SIZE: return the size of the virtio config space.

The size contains the fields which are conditional on feature
bits.

Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Longpeng <longpeng2@huawei.com>
Link: https://lore.kernel.org/r/20220315032553.455-2-longpeng2@huawei.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
drivers/vhost/vdpa.c
include/linux/vdpa.h
include/uapi/linux/vhost.h