aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vhost/vhost.h
diff options
context:
space:
mode:
authorAsias He <asias@redhat.com>2013-04-26 23:16:48 -0400
committerMichael S. Tsirkin <mst@redhat.com>2013-05-01 03:02:45 -0400
commit3ab2e420ec1caf4ead233f3161ac7d86fe5d2a9f (patch)
tree6c6237f7bbad368dfbdae34895430280af0d19b0 /drivers/vhost/vhost.h
parentbc7562355fda8075793bf66094cda573206ec693 (diff)
vhost: Allow device specific fields per vq
This is useful for any device who wants device specific fields per vq. For example, tcm_vhost wants a per vq field to track requests which are in flight on the vq. Also, on top of this we can add patches to move things like ubufs from vhost.h out to net.c. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Asias He <asias@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost/vhost.h')
-rw-r--r--drivers/vhost/vhost.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h
index 17261e277c02..f3afa8a41fe0 100644
--- a/drivers/vhost/vhost.h
+++ b/drivers/vhost/vhost.h
@@ -150,7 +150,7 @@ struct vhost_dev {
150 struct mm_struct *mm; 150 struct mm_struct *mm;
151 struct mutex mutex; 151 struct mutex mutex;
152 unsigned acked_features; 152 unsigned acked_features;
153 struct vhost_virtqueue *vqs; 153 struct vhost_virtqueue **vqs;
154 int nvqs; 154 int nvqs;
155 struct file *log_file; 155 struct file *log_file;
156 struct eventfd_ctx *log_ctx; 156 struct eventfd_ctx *log_ctx;
@@ -159,7 +159,7 @@ struct vhost_dev {
159 struct task_struct *worker; 159 struct task_struct *worker;
160}; 160};
161 161
162long vhost_dev_init(struct vhost_dev *, struct vhost_virtqueue *vqs, int nvqs); 162long vhost_dev_init(struct vhost_dev *, struct vhost_virtqueue **vqs, int nvqs);
163long vhost_dev_check_owner(struct vhost_dev *); 163long vhost_dev_check_owner(struct vhost_dev *);
164long vhost_dev_reset_owner(struct vhost_dev *); 164long vhost_dev_reset_owner(struct vhost_dev *);
165void vhost_dev_cleanup(struct vhost_dev *, bool locked); 165void vhost_dev_cleanup(struct vhost_dev *, bool locked);