KVM: PPC: Book3S HV: Migrate hot plugged memory
authorLaurent Dufour <ldufour@linux.ibm.com>
Mon, 27 Jul 2020 18:07:18 +0000 (11:07 -0700)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 28 Jul 2020 02:34:52 +0000 (12:34 +1000)
commita2ce72003863d0dcf680f0c49de4678ab2c6812b
treefb82e9b415e6eba606a28a5ce9214a4320a43dce
parentdfaa973ae9605e1731eaef9f30c2b056346a4efc
KVM: PPC: Book3S HV: Migrate hot plugged memory

When a memory slot is hot plugged to a SVM, PFNs associated with the
GFNs in that slot must be migrated to the secure-PFNs, aka device-PFNs.

Call kvmppc_uv_migrate_mem_slot() to accomplish this.
Disable page-merge for all pages in the memory slot.

Reviewed-by: Bharata B Rao <bharata@linux.ibm.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
[rearranged the code, and modified the commit log]
Signed-off-by: Laurent Dufour <ldufour@linux.ibm.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/kvm_book3s_uvmem.h
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_uvmem.c