Skip to content

Commit

Permalink
mm: ksm: Export ksm_madvise()
Browse files Browse the repository at this point in the history
On PEF-enabled POWER platforms that support running of secure guests,
secure pages of the guest are represented by device private pages
in the host. Such pages needn't participate in KSM merging. This is
achieved by using ksm_madvise() call which need to be exported
since KVM PPC can be a kernel module.

Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
  • Loading branch information
Bharata B Rao authored and Paul Mackerras committed Nov 28, 2019
1 parent 9671024 commit 33cf170
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/ksm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2478,6 +2478,7 @@ int ksm_madvise(struct vm_area_struct *vma, unsigned long start,

return 0;
}
EXPORT_SYMBOL_GPL(ksm_madvise);

int __ksm_enter(struct mm_struct *mm)
{
Expand Down

0 comments on commit 33cf170

Please sign in to comment.