diff options
author | Nick Wang <jfwang@us.ibm.com> | 2013-03-25 12:22:58 -0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-04-02 09:14:53 -0400 |
commit | e1e2e605c2ad6791ce6346b22443ce611709fa65 (patch) | |
tree | 2f4fb3c0a3d29b1f614f0231d38875315bf9fa72 /arch/s390 | |
parent | dd2887e7c36d0be986ef17a9dbec904e3e334566 (diff) |
KVM: s390: Enable KVM_CAP_NR_MEMSLOTS on s390
Return KVM_USER_MEM_SLOTS in kvm_dev_ioctl_check_extension().
Signed-off-by: Nick Wang <jfwang@us.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index b322ff15751d..c1c7c683fa26 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c | |||
@@ -149,6 +149,9 @@ int kvm_dev_ioctl_check_extension(long ext) | |||
149 | case KVM_CAP_MAX_VCPUS: | 149 | case KVM_CAP_MAX_VCPUS: |
150 | r = KVM_MAX_VCPUS; | 150 | r = KVM_MAX_VCPUS; |
151 | break; | 151 | break; |
152 | case KVM_CAP_NR_MEMSLOTS: | ||
153 | r = KVM_USER_MEM_SLOTS; | ||
154 | break; | ||
152 | case KVM_CAP_S390_COW: | 155 | case KVM_CAP_S390_COW: |
153 | r = MACHINE_HAS_ESOP; | 156 | r = MACHINE_HAS_ESOP; |
154 | break; | 157 | break; |