xref: /linux/arch/s390/include/asm/gmap_helpers.h (revision cf6077e4903ffed2291f5f3cb9d61b29abe456c4)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  *  Helper functions for KVM guest address space mapping code
4  *
5  *    Copyright IBM Corp. 2025
6  */
7 
8 #ifndef _ASM_S390_GMAP_HELPERS_H
9 #define _ASM_S390_GMAP_HELPERS_H
10 
11 void gmap_helper_zap_one_page(struct mm_struct *mm, unsigned long vmaddr);
12 void gmap_helper_discard(struct mm_struct *mm, unsigned long vmaddr, unsigned long end);
13 int gmap_helper_disable_cow_sharing(void);
14 void gmap_helper_try_set_pte_unused(struct mm_struct *mm, unsigned long vmaddr);
15 pte_t *try_get_locked_pte(struct mm_struct *mm, unsigned long addr, spinlock_t **ptl);
16 
17 #endif /* _ASM_S390_GMAP_HELPERS_H */
18