KVM: PPC: Book3S HV: Disable page merging in H_SVM_INIT_START
authorRam Pai <linuxram@us.ibm.com>
Mon, 27 Jul 2020 18:07:15 +0000 (11:07 -0700)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 28 Jul 2020 02:34:52 +0000 (12:34 +1000)
commit2027a24a75ce32cf48a22cc25a9d87b8c5b19328
treed9fd20bd150c3e4cc05fb581b4792bee2e92d78a
parent48908a3833cc76c56e626e8e80ba8f808c8d03a5
KVM: PPC: Book3S HV: Disable page merging in H_SVM_INIT_START

Page-merging of pages in memory-slots associated with a Secure VM
is disabled in H_SVM_PAGE_IN handler.

This operation should have been done the much earlier; the moment the VM
is initiated for secure-transition. Delaying this operation increases
the probability for those pages to acquire new references, making it
impossible to migrate those pages in H_SVM_PAGE_IN handler.

Disable page-migration in H_SVM_INIT_START handling.

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