]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: s390: Fix KVM_S390_GET_CMMA_BITS ioctl definition
authorGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Mon, 10 Jul 2017 21:22:33 +0000 (00:22 +0300)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 12 Jul 2017 20:38:26 +0000 (22:38 +0200)
commit949c033694864082db9b3f5304723a6d7407f8e2
tree74924370cd355016240e1858987ea53c12f3ab63
parent48ae0fb49b2e8380e60c5072f18005c8a98c6520
KVM: s390: Fix KVM_S390_GET_CMMA_BITS ioctl definition

In case of KVM_S390_GET_CMMA_BITS, the kernel does not only read struct
kvm_s390_cmma_log passed from userspace (which constitutes _IOC_WRITE),
it also writes back a return value (which constitutes _IOC_READ) making
this an _IOWR ioctl instead of _IOW.

Fixes: 4036e387 ("KVM: s390: ioctls to get and set guest storage attributes")
Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
include/uapi/linux/kvm.h