]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit27b11f42e3ab4aa9026acd306acd6e87ab8c1869
treeba1f8b5409a37dd379901c3256203965e35ed617
parent52d796cbe551e03bb010e1184e2b3eca440bf890
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