KVM: s390: Advertise KVM_CAP_USER_MEMORY

KVM_CAP_USER_MEMORY is used by s390, therefore, we should advertise it.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>

authored by

Carsten Otte and committed by
Avi Kivity
2bd0ac4e cab7a1ee

+6 -1
+6 -1
arch/s390/kvm/kvm-s390.c
··· 112 112 113 113 int kvm_dev_ioctl_check_extension(long ext) 114 114 { 115 - return 0; 115 + switch (ext) { 116 + case KVM_CAP_USER_MEMORY: 117 + return 1; 118 + default: 119 + return 0; 120 + } 116 121 } 117 122 118 123 /* Section: vm related */