summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/vhost.h
diff options
context:
space:
mode:
authorJason Wang2016-03-04 12:24:53 +0100
committerMichael S. Tsirkin2016-03-11 01:18:53 +0100
commit0308813724606549436d30efd877a80c8e00790e (patch)
tree9ce96f57528d75f21df24831ad35fca9fdc7a4d4 /include/uapi/linux/vhost.h
parentvhost: introduce vhost_vq_avail_empty() (diff)
downloadkernel-qcow2-linux-0308813724606549436d30efd877a80c8e00790e.tar.gz
kernel-qcow2-linux-0308813724606549436d30efd877a80c8e00790e.tar.xz
kernel-qcow2-linux-0308813724606549436d30efd877a80c8e00790e.zip
vhost_net: basic polling support
This patch tries to poll for new added tx buffer or socket receive queue for a while at the end of tx/rx processing. The maximum time spent on polling were specified through a new kind of vring ioctl. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/uapi/linux/vhost.h')
-rw-r--r--include/uapi/linux/vhost.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h
index ab3731917bac..61a8777178c6 100644
--- a/include/uapi/linux/vhost.h
+++ b/include/uapi/linux/vhost.h
@@ -126,6 +126,12 @@ struct vhost_memory {
#define VHOST_SET_VRING_CALL _IOW(VHOST_VIRTIO, 0x21, struct vhost_vring_file)
/* Set eventfd to signal an error */
#define VHOST_SET_VRING_ERR _IOW(VHOST_VIRTIO, 0x22, struct vhost_vring_file)
+/* Set busy loop timeout (in us) */
+#define VHOST_SET_VRING_BUSYLOOP_TIMEOUT _IOW(VHOST_VIRTIO, 0x23, \
+ struct vhost_vring_state)
+/* Get busy loop timeout (in us) */
+#define VHOST_GET_VRING_BUSYLOOP_TIMEOUT _IOW(VHOST_VIRTIO, 0x24, \
+ struct vhost_vring_state)
/* VHOST_NET specific defines */