KVM: PPC: Book3S HV: Cleanups - constify memslots, fix comments
authorPaul Mackerras <paulus@ozlabs.org>
Wed, 12 Dec 2018 04:16:48 +0000 (15:16 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Sun, 16 Dec 2018 23:58:43 +0000 (10:58 +1100)
commitc43c3a8683fe624b67b91a06f1c25cd752a05b3b
tree7c02e48585bc9e77c88d3b3da8c26580252aedc6
parentf460f6791a0224cfb019462363caa014c3aec8d7
KVM: PPC: Book3S HV: Cleanups - constify memslots, fix comments

This adds 'const' to the declarations for the struct kvm_memory_slot
pointer parameters of some functions, which will make it possible to
call those functions from kvmppc_core_commit_memory_region_hv()
in the next patch.

This also fixes some comments about locking.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Reviewed-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/include/asm/kvm_book3s_64.h
arch/powerpc/kvm/book3s_64_mmu_radix.c
arch/powerpc/kvm/book3s_hv_nested.c
arch/powerpc/kvm/book3s_hv_rm_mmu.c