mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
Add gmap_helper_set_unused() to mark userspace ptes as unused. Core mm code will use that information to discard unused pages instead of attempting to swap them. Reviewed-by: Nico Boehr <nrb@linux.ibm.com> Tested-by: Nico Boehr <nrb@linux.ibm.com> Acked-by: Christoph Schlameuss <schlameuss@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
17 lines
537 B
C
17 lines
537 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Helper functions for KVM guest address space mapping code
|
|
*
|
|
* Copyright IBM Corp. 2025
|
|
*/
|
|
|
|
#ifndef _ASM_S390_GMAP_HELPERS_H
|
|
#define _ASM_S390_GMAP_HELPERS_H
|
|
|
|
void gmap_helper_zap_one_page(struct mm_struct *mm, unsigned long vmaddr);
|
|
void gmap_helper_discard(struct mm_struct *mm, unsigned long vmaddr, unsigned long end);
|
|
int gmap_helper_disable_cow_sharing(void);
|
|
void gmap_helper_try_set_pte_unused(struct mm_struct *mm, unsigned long vmaddr);
|
|
|
|
#endif /* _ASM_S390_GMAP_HELPERS_H */
|