Go to the documentation of this file.
13 #include <linux/types.h>
14 #include <linux/compiler.h>
16 #include <linux/virtio_config.h>
17 #include <linux/virtio_ring.h>
36 #define VHOST_VRING_F_LOG 0
58 #define VHOST_PAGE_SIZE 0x1000
68 #define VHOST_VIRTIO 0xAF
72 #define VHOST_GET_FEATURES _IOR(VHOST_VIRTIO, 0x00, __u64)
73 #define VHOST_SET_FEATURES _IOW(VHOST_VIRTIO, 0x00, __u64)
78 #define VHOST_SET_OWNER _IO(VHOST_VIRTIO, 0x01)
81 #define VHOST_RESET_OWNER _IO(VHOST_VIRTIO, 0x02)
84 #define VHOST_SET_MEM_TABLE _IOW(VHOST_VIRTIO, 0x03, struct vhost_memory)
91 #define VHOST_SET_LOG_BASE _IOW(VHOST_VIRTIO, 0x04, __u64)
93 #define VHOST_SET_LOG_FD _IOW(VHOST_VIRTIO, 0x07, int)
98 #define VHOST_SET_VRING_NUM _IOW(VHOST_VIRTIO, 0x10, struct vhost_vring_state)
100 #define VHOST_SET_VRING_ADDR _IOW(VHOST_VIRTIO, 0x11, struct vhost_vring_addr)
102 #define VHOST_SET_VRING_BASE _IOW(VHOST_VIRTIO, 0x12, struct vhost_vring_state)
104 #define VHOST_GET_VRING_BASE _IOWR(VHOST_VIRTIO, 0x12, struct vhost_vring_state)
110 #define VHOST_SET_VRING_KICK _IOW(VHOST_VIRTIO, 0x20, struct vhost_vring_file)
112 #define VHOST_SET_VRING_CALL _IOW(VHOST_VIRTIO, 0x21, struct vhost_vring_file)
114 #define VHOST_SET_VRING_ERR _IOW(VHOST_VIRTIO, 0x22, struct vhost_vring_file)
122 #define VHOST_NET_SET_BACKEND _IOW(VHOST_VIRTIO, 0x30, struct vhost_vring_file)
126 #define VHOST_F_LOG_ALL 26
128 #define VHOST_NET_F_VIRTIO_NET_HDR 27