KVM: s390: Enable KVM_CAP_NR_MEMSLOTS on s390
authorNick Wang <jfwang@us.ibm.com>
Mon, 25 Mar 2013 16:22:58 +0000 (17:22 +0100)
committerGleb Natapov <gleb@redhat.com>
Tue, 2 Apr 2013 13:14:53 +0000 (16:14 +0300)
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>
arch/s390/kvm/kvm-s390.c

index b322ff15751d5051551f6fcb1c7cde1c5240996d..c1c7c683fa26d591af0eeac242ee898f88cb9dc2 100644 (file)
@@ -149,6 +149,9 @@ int kvm_dev_ioctl_check_extension(long ext)
        case KVM_CAP_MAX_VCPUS:
                r = KVM_MAX_VCPUS;
                break;
+       case KVM_CAP_NR_MEMSLOTS:
+               r = KVM_USER_MEM_SLOTS;
+               break;
        case KVM_CAP_S390_COW:
                r = MACHINE_HAS_ESOP;
                break;