]> git.itanic.dy.fi Git - linux-stable/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)
commita61280ddddaa45f95b60dd54c05f8e0e5b6810b7
treef31e76d3b574d121c152341b47e065d2b4f4d1ab
parentf1781bedea8cae7f26aa0f20a00017ab746d4d4c
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