]> git.samba.org - sfrench/cifs-2.6.git/commit
vhost: add helper to parse userspace vring state/file
authorMike Christie <michael.christie@oracle.com>
Mon, 26 Jun 2023 23:23:03 +0000 (18:23 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 Jul 2023 16:15:14 +0000 (12:15 -0400)
commitcef25866f41c45a01a933adb032b0dcfb25b847a
tree5ebd6f1ab550d2285c52b660229114b378b32999
parent27eca189114235fde84980b8ee044f42c1d59519
vhost: add helper to parse userspace vring state/file

The next patches add new vhost worker ioctls which will need to get a
vhost_virtqueue from a userspace struct which specifies the vq's index.
This moves the vhost_vring_ioctl code to do this to a helper so it can
be shared.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Message-Id: <20230626232307.97930-14-michael.christie@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c