aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/vhost.h
diff options
context:
space:
mode:
authorGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>2018-09-03 20:59:13 +0300
committerDavid S. Miller <davem@davemloft.net>2018-09-03 21:23:24 -0700
commitc48300c92ad9f029f4dcbcf5d71ad880e3acf2fa (patch)
tree82d29fab90edbe03ec53f1f0106d39653c4f753c /include/uapi/linux/vhost.h
parentr8169: add support for NCube 8168 network card (diff)
downloadlinux-dev-c48300c92ad9f029f4dcbcf5d71ad880e3acf2fa.tar.xz
linux-dev-c48300c92ad9f029f4dcbcf5d71ad880e3acf2fa.zip
vhost: fix VHOST_GET_BACKEND_FEATURES ioctl request definition
The _IOC_READ flag fits this ioctl request more because this request actually only writes to, but doesn't read from userspace. See NOTEs in include/uapi/asm-generic/ioctl.h for more information. Fixes: 429711aec282 ("vhost: switch to use new message format") Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> Acked-by: Jason Wang <jasowang@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--include/uapi/linux/vhost.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h
index b1e22c40c4b6..84c3de89696a 100644
--- a/include/uapi/linux/vhost.h
+++ b/include/uapi/linux/vhost.h
@@ -176,7 +176,7 @@ struct vhost_memory {
#define VHOST_BACKEND_F_IOTLB_MSG_V2 0x1
#define VHOST_SET_BACKEND_FEATURES _IOW(VHOST_VIRTIO, 0x25, __u64)
-#define VHOST_GET_BACKEND_FEATURES _IOW(VHOST_VIRTIO, 0x26, __u64)
+#define VHOST_GET_BACKEND_FEATURES _IOR(VHOST_VIRTIO, 0x26, __u64)
/* VHOST_NET specific defines */