#include <linux/eventfd.h>
#include <linux/vhost.h>
#include <linux/mm.h>
#include <linux/mutex.h>
#include <linux/poll.h>
#include <linux/file.h>
#include <linux/skbuff.h>
#include <linux/uio.h>
#include <linux/virtio_config.h>
#include <linux/virtio_ring.h>
#include <linux/atomic.h>
Go to the source code of this file.
|
void | vhost_work_init (struct vhost_work *work, vhost_work_fn_t fn) |
|
void | vhost_work_queue (struct vhost_dev *dev, struct vhost_work *work) |
|
void | vhost_poll_init (struct vhost_poll *poll, vhost_work_fn_t fn, unsigned long mask, struct vhost_dev *dev) |
|
void | vhost_poll_start (struct vhost_poll *poll, struct file *file) |
|
void | vhost_poll_stop (struct vhost_poll *poll) |
|
void | vhost_poll_flush (struct vhost_poll *poll) |
|
void | vhost_poll_queue (struct vhost_poll *poll) |
|
struct vhost_ubuf_ref * | vhost_ubuf_alloc (struct vhost_virtqueue *, bool zcopy) |
|
void | vhost_ubuf_put (struct vhost_ubuf_ref *) |
|
void | vhost_ubuf_put_and_wait (struct vhost_ubuf_ref *) |
|
long | vhost_dev_init (struct vhost_dev *, struct vhost_virtqueue *vqs, int nvqs) |
|
long | vhost_dev_check_owner (struct vhost_dev *) |
|
long | vhost_dev_reset_owner (struct vhost_dev *) |
|
void | vhost_dev_cleanup (struct vhost_dev *, bool locked) |
|
long | vhost_dev_ioctl (struct vhost_dev *, unsigned int ioctl, unsigned long arg) |
|
int | vhost_vq_access_ok (struct vhost_virtqueue *vq) |
|
int | vhost_log_access_ok (struct vhost_dev *) |
|
int | vhost_get_vq_desc (struct vhost_dev *, struct vhost_virtqueue *, struct iovec iov[], unsigned int iov_count, unsigned int *out_num, unsigned int *in_num, struct vhost_log *log, unsigned int *log_num) |
|
void | vhost_discard_vq_desc (struct vhost_virtqueue *, int n) |
|
int | vhost_init_used (struct vhost_virtqueue *) |
|
int | vhost_add_used (struct vhost_virtqueue *, unsigned int head, int len) |
|
int | vhost_add_used_n (struct vhost_virtqueue *, struct vring_used_elem *heads, unsigned count) |
|
void | vhost_add_used_and_signal (struct vhost_dev *, struct vhost_virtqueue *, unsigned int id, int len) |
|
void | vhost_add_used_and_signal_n (struct vhost_dev *, struct vhost_virtqueue *, struct vring_used_elem *heads, unsigned count) |
|
void | vhost_signal (struct vhost_dev *, struct vhost_virtqueue *) |
|
void | vhost_disable_notify (struct vhost_dev *, struct vhost_virtqueue *) |
|
bool | vhost_enable_notify (struct vhost_dev *, struct vhost_virtqueue *) |
|
int | vhost_log_write (struct vhost_virtqueue *vq, struct vhost_log *log, unsigned int log_num, u64 len) |
|
void | vhost_zerocopy_callback (struct ubuf_info *) |
|
int | vhost_zerocopy_signal_used (struct vhost_virtqueue *vq) |
|
void | vhost_enable_zcopy (int vq) |
|
#define VHOST_DMA_CLEAR_LEN 0 |
#define VHOST_DMA_DONE_LEN 1 |
#define vq_err |
( |
|
vq, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| |
Value:do { \
if ((vq)->error_ctx) \
eventfd_signal((vq)->error_ctx, 1);\
} while (0)
Definition at line 197 of file vhost.h.
- Enumerator:
VHOST_FEATURES |
|
VHOST_NET_FEATURES |
|
Definition at line 203 of file vhost.h.