[PATCH v5 6/7] KVM: PPC: Book3S HV: move kvmppc_svm_page_out up

Bharata B Rao bharata at linux.ibm.com
Mon Jul 27 13:49:41 AEST 2020


On Thu, Jul 23, 2020 at 01:07:23PM -0700, Ram Pai wrote:
> From: Laurent Dufour <ldufour at linux.ibm.com>
> 
> kvmppc_svm_page_out() will need to be called by kvmppc_uvmem_drop_pages()
> so move it upper 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.
> 
> Cc: Ram Pai <linuxram at us.ibm.com>
> Cc: Bharata B Rao <bharata at linux.ibm.com>
> Cc: Paul Mackerras <paulus at ozlabs.org>
> Signed-off-by: Ram Pai <linuxram at us.ibm.com>
> Signed-off-by: Laurent Dufour <ldufour at linux.ibm.com>

Reviewed-by: Bharata B Rao <bharata at linux.ibm.com>

Regards,
Bharata.


More information about the Linuxppc-dev mailing list