4 #include <linux/vhost.h>
9 static const struct ioctl vhost_ioctls
[] = {
10 IOCTL(VHOST_GET_FEATURES
),
11 IOCTL(VHOST_SET_FEATURES
),
12 IOCTL(VHOST_SET_OWNER
),
13 IOCTL(VHOST_RESET_OWNER
),
14 IOCTL(VHOST_SET_MEM_TABLE
),
15 IOCTL(VHOST_SET_LOG_BASE
),
16 IOCTL(VHOST_SET_LOG_FD
),
17 IOCTL(VHOST_SET_VRING_NUM
),
18 IOCTL(VHOST_SET_VRING_ADDR
),
19 IOCTL(VHOST_SET_VRING_BASE
),
20 IOCTL(VHOST_GET_VRING_BASE
),
21 IOCTL(VHOST_SET_VRING_KICK
),
22 IOCTL(VHOST_SET_VRING_CALL
),
23 IOCTL(VHOST_SET_VRING_ERR
),
24 IOCTL(VHOST_NET_SET_BACKEND
),
25 #ifdef VHOST_SCSI_SET_ENDPOINT
26 IOCTL(VHOST_SCSI_SET_ENDPOINT
),
28 #ifdef VHOST_SCSI_CLEAR_ENDPOINT
29 IOCTL(VHOST_SCSI_CLEAR_ENDPOINT
),
31 #ifdef VHOST_SCSI_GET_ABI_VERSION
32 IOCTL(VHOST_SCSI_GET_ABI_VERSION
),
34 #ifdef VHOST_SCSI_SET_EVENTS_MISSED
35 IOCTL(VHOST_SCSI_SET_EVENTS_MISSED
),
37 #ifdef VHOST_SCSI_GET_EVENTS_MISSED
38 IOCTL(VHOST_SCSI_GET_EVENTS_MISSED
),
42 static const char *const vhost_devs
[] = {
46 static const struct ioctl_group vhost_grp
= {
49 .devs_cnt
= ARRAY_SIZE(vhost_devs
),
50 .sanitise
= pick_random_ioctl
,
51 .ioctls
= vhost_ioctls
,
52 .ioctls_cnt
= ARRAY_SIZE(vhost_ioctls
),
55 REG_IOCTL_GROUP(vhost_grp
)
56 #endif /* USE_VHOST */