KVM: PPC: Book3S HV: Move kvmppc_svm_page_out up
authorLaurent Dufour <ldufour@linux.ibm.com>
Mon, 27 Jul 2020 19:24:28 +0000 (12:24 -0700)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 28 Jul 2020 02:34:52 +0000 (12:34 +1000)
commitf1b87ea8784b8c79d9bffad60fe0720c2cb21ec7
treeba1f8b5409a37dd379901c3256203965e35ed617
parenta2ce72003863d0dcf680f0c49de4678ab2c6812b
KVM: PPC: Book3S HV: Move kvmppc_svm_page_out up

kvmppc_svm_page_out() will need to be called by kvmppc_uvmem_drop_pages()
so move it up earlier in this file.

Furthermore it will be interesting to call this function when already
holding the kvm->arch.uvmem_lock, so prefix the original function with __
and remove the locking in it, and introduce a wrapper which call that
function with the lock held.

There is no functional change.

Reviewed-by: Bharata B Rao <bharata@linux.ibm.com>
Signed-off-by: Laurent Dufour <ldufour@linux.ibm.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_hv_uvmem.c