diff options
author | Bharata B Rao <bharata@linux.ibm.com> | 2019-11-25 08:36:28 +0530 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2019-11-28 17:02:20 +1100 |
commit | 008e359c76d85facb10d10fa21fd5bc8c3a4e5d6 (patch) | |
tree | a855afea77b5d2c64102112966d3fdfd46f58f8e /arch/powerpc/include/asm/ultravisor-api.h | |
parent | 60f0a643aa44e4bed3a74ea671110707dd64d892 (diff) | |
download | blackbird-op-linux-008e359c76d85facb10d10fa21fd5bc8c3a4e5d6.tar.gz blackbird-op-linux-008e359c76d85facb10d10fa21fd5bc8c3a4e5d6.zip |
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>
Diffstat (limited to 'arch/powerpc/include/asm/ultravisor-api.h')
-rw-r--r-- | arch/powerpc/include/asm/ultravisor-api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ultravisor-api.h b/arch/powerpc/include/asm/ultravisor-api.h index 2483f15bd71a..e774274ab30e 100644 --- a/arch/powerpc/include/asm/ultravisor-api.h +++ b/arch/powerpc/include/asm/ultravisor-api.h @@ -32,5 +32,6 @@ #define UV_SHARE_PAGE 0xF130 #define UV_UNSHARE_PAGE 0xF134 #define UV_UNSHARE_ALL_PAGES 0xF140 +#define UV_PAGE_INVAL 0xF138 #endif /* _ASM_POWERPC_ULTRAVISOR_API_H */ |