KVM: Rename KVM_MEMORY_SLOTS -> KVM_USER_MEM_SLOTS
[~shefty/rdma-dev.git] / arch / powerpc / kvm / book3s_hv.c
index 71d0c90..80dcc53 100644 (file)
@@ -1549,7 +1549,7 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log)
        mutex_lock(&kvm->slots_lock);
 
        r = -EINVAL;
-       if (log->slot >= KVM_MEMORY_SLOTS)
+       if (log->slot >= KVM_USER_MEM_SLOTS)
                goto out;
 
        memslot = id_to_memslot(kvm->memslots, log->slot);