KVM: Add API for determining the number of supported memory slots
[linux-2.6.git] / arch / x86 / kvm / x86.c
index 955d2ee..b7c32f6 100644 (file)
@@ -814,6 +814,9 @@ int kvm_dev_ioctl_check_extension(long ext)
        case KVM_CAP_NR_VCPUS:
                r = KVM_MAX_VCPUS;
                break;
+       case KVM_CAP_NR_MEMSLOTS:
+               r = KVM_MEMORY_SLOTS;
+               break;
        default:
                r = 0;
                break;