diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2012-12-10 12:33:09 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-12-13 20:21:57 -0500 |
commit | bbacc0c111c3c5d1f3192b8cc1642b9c3954f80d (patch) | |
tree | 2ccef1b8a73400c56a1ef2a3967d09606b8ab50a /arch/powerpc | |
parent | b7f69c555ca430129b6cde81e9f0927531420c5c (diff) |
KVM: Rename KVM_MEMORY_SLOTS -> KVM_USER_MEM_SLOTS
It's easy to confuse KVM_MEMORY_SLOTS and KVM_MEM_SLOTS_NUM. One is
the user accessible slots and the other is user + private. Make this
more obvious.
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/kvm_host.h | 4 | ||||
-rw-r--r-- | arch/powerpc/kvm/book3s_hv.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h index ca9bf459db6a..ac19ad60ae8c 100644 --- a/arch/powerpc/include/asm/kvm_host.h +++ b/arch/powerpc/include/asm/kvm_host.h | |||
@@ -37,10 +37,10 @@ | |||
37 | 37 | ||
38 | #define KVM_MAX_VCPUS NR_CPUS | 38 | #define KVM_MAX_VCPUS NR_CPUS |
39 | #define KVM_MAX_VCORES NR_CPUS | 39 | #define KVM_MAX_VCORES NR_CPUS |
40 | #define KVM_MEMORY_SLOTS 32 | 40 | #define KVM_USER_MEM_SLOTS 32 |
41 | /* memory slots that does not exposed to userspace */ | 41 | /* memory slots that does not exposed to userspace */ |
42 | #define KVM_PRIVATE_MEM_SLOTS 4 | 42 | #define KVM_PRIVATE_MEM_SLOTS 4 |
43 | #define KVM_MEM_SLOTS_NUM (KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS) | 43 | #define KVM_MEM_SLOTS_NUM (KVM_USER_MEM_SLOTS + KVM_PRIVATE_MEM_SLOTS) |
44 | 44 | ||
45 | #ifdef CONFIG_KVM_MMIO | 45 | #ifdef CONFIG_KVM_MMIO |
46 | #define KVM_COALESCED_MMIO_PAGE_OFFSET 1 | 46 | #define KVM_COALESCED_MMIO_PAGE_OFFSET 1 |
diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 71d0c90b62bf..80dcc53a1aba 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c | |||
@@ -1549,7 +1549,7 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log) | |||
1549 | mutex_lock(&kvm->slots_lock); | 1549 | mutex_lock(&kvm->slots_lock); |
1550 | 1550 | ||
1551 | r = -EINVAL; | 1551 | r = -EINVAL; |
1552 | if (log->slot >= KVM_MEMORY_SLOTS) | 1552 | if (log->slot >= KVM_USER_MEM_SLOTS) |
1553 | goto out; | 1553 | goto out; |
1554 | 1554 | ||
1555 | memslot = id_to_memslot(kvm->memslots, log->slot); | 1555 | memslot = id_to_memslot(kvm->memslots, log->slot); |