diff options
author | Shawn Anastasio | 2020-08-21 13:55:56 -0500 |
---|---|---|
committer | Michael Ellerman | 2020-08-24 14:12:53 +1000 |
commit | 12564485ed8caac3c18572793ec01330792c7191 (patch) | |
tree | 4c39433df7192a8b16f72299def2b1bc6c634fb4 /mm/ksm.c | |
parent | 64ef8f2c4791940d7f3945507b6a45c20d959260 (diff) |
Revert "powerpc/64s: Remove PROT_SAO support"
This reverts commit 5c9fa16e8abd342ce04dc830c1ebb2a03abf6c05.
Since PROT_SAO can still be useful for certain classes of software,
reintroduce it. Concerns about guest migration for LPARs using SAO
will be addressed next.
Signed-off-by: Shawn Anastasio <shawn@anastas.io>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200821185558.35561-2-shawn@anastas.io
Diffstat (limited to 'mm/ksm.c')
-rw-r--r-- | mm/ksm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2453,6 +2453,10 @@ int ksm_madvise(struct vm_area_struct *vma, unsigned long start, if (vma_is_dax(vma)) return 0; +#ifdef VM_SAO + if (*vm_flags & VM_SAO) + return 0; +#endif #ifdef VM_SPARC_ADI if (*vm_flags & VM_SPARC_ADI) return 0; |