summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/gmap_helpers.h
blob: d2b616604a469c5ce8f12d45ad95e7f6a203e031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* 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);
pte_t *try_get_locked_pte(struct mm_struct *mm, unsigned long addr, spinlock_t **ptl);

#endif /* _ASM_S390_GMAP_HELPERS_H */