.. | .. |
---|
87 | 87 | /* The routine to call when the Guest pings us, or timeout. */ |
---|
88 | 88 | vhost_work_fn_t handle_kick; |
---|
89 | 89 | |
---|
90 | | - /* Last available index we saw. */ |
---|
| 90 | + /* Last available index we saw. |
---|
| 91 | + * Values are limited to 0x7fff, and the high bit is used as |
---|
| 92 | + * a wrap counter when using VIRTIO_F_RING_PACKED. */ |
---|
91 | 93 | u16 last_avail_idx; |
---|
92 | 94 | |
---|
93 | 95 | /* Caches available index value from user. */ |
---|
94 | 96 | u16 avail_idx; |
---|
95 | 97 | |
---|
96 | | - /* Last index we used. */ |
---|
| 98 | + /* Last index we used. |
---|
| 99 | + * Values are limited to 0x7fff, and the high bit is used as |
---|
| 100 | + * a wrap counter when using VIRTIO_F_RING_PACKED. */ |
---|
97 | 101 | u16 last_used_idx; |
---|
98 | 102 | |
---|
99 | 103 | /* Used flags */ |
---|
.. | .. |
---|
183 | 187 | long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp); |
---|
184 | 188 | bool vhost_vq_access_ok(struct vhost_virtqueue *vq); |
---|
185 | 189 | bool vhost_log_access_ok(struct vhost_dev *); |
---|
| 190 | +void vhost_clear_msg(struct vhost_dev *dev); |
---|
186 | 191 | |
---|
187 | 192 | int vhost_get_vq_desc(struct vhost_virtqueue *, |
---|
188 | 193 | struct iovec iov[], unsigned int iov_count, |
---|