diff options
author | Mike Christie <michael.christie@oracle.com> | 2023-06-27 01:22:53 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-07-03 18:15:13 +0200 |
commit | 737bdb643c4f488defd6c226eb40de2c8f6e3f75 (patch) | |
tree | b7d4995211bfece84baaa8fadfe7d01f0222a26e /drivers/vhost/vhost.h | |
parent | vhost: dynamically allocate vhost_worker (diff) | |
download | linux-737bdb643c4f488defd6c226eb40de2c8f6e3f75.tar.xz linux-737bdb643c4f488defd6c226eb40de2c8f6e3f75.zip |
vhost: add vhost_worker pointer to vhost_virtqueue
This patchset allows userspace to map vqs to different workers. This
patch adds a worker pointer to the vq so in later patches in this set
we can queue/flush specific vqs and their workers.
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Message-Id: <20230626232307.97930-4-michael.christie@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost/vhost.h')
-rw-r--r-- | drivers/vhost/vhost.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index cb872cc4157a..206617edb2a9 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -74,6 +74,7 @@ struct vhost_vring_call { /* The virtqueue structure describes a queue attached to a device. */ struct vhost_virtqueue { struct vhost_dev *dev; + struct vhost_worker *worker; /* The actual ring of buffers. */ struct mutex mutex; |