KVM: PPC: Book3S HV: Radix changes for secure guest
authorBharata B Rao <bharata@linux.ibm.com>
Mon, 25 Nov 2019 03:06:28 +0000 (08:36 +0530)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 28 Nov 2019 06:02:20 +0000 (17:02 +1100)
commit008e359c76d85facb10d10fa21fd5bc8c3a4e5d6
treea855afea77b5d2c64102112966d3fdfd46f58f8e
parent60f0a643aa44e4bed3a74ea671110707dd64d892
KVM: PPC: Book3S HV: Radix changes for secure guest

- After the guest becomes secure, when we handle a page fault of a page
  belonging to SVM in HV, send that page to UV via UV_PAGE_IN.
- Whenever a page is unmapped on the HV side, inform UV via UV_PAGE_INVAL.
- Ensure all those routines that walk the secondary page tables of
  the guest don't do so in case of secure VM. For secure guest, the
  active secondary page tables are in secure memory and the secondary
  page tables in HV are freed when guest becomes secure.

Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/kvm_book3s_uvmem.h
arch/powerpc/include/asm/ultravisor-api.h
arch/powerpc/include/asm/ultravisor.h
arch/powerpc/kvm/book3s_64_mmu_radix.c
arch/powerpc/kvm/book3s_hv_uvmem.c