mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Refactor some gmap functions; move the implementation into a separate file with only helper functions. The new helper functions work on vm addresses, leaving all gmap logic in the gmap functions, which mostly become just wrappers. The whole gmap handling is going to be moved inside KVM soon, but the helper functions need to touch core mm functions, and thus need to stay in the core of kernel. Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com> Acked-by: Janosch Frank <frankja@linux.ibm.com> Link: https://lore.kernel.org/r/20250528095502.226213-4-imbrenda@linux.ibm.com Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Message-ID: <20250528095502.226213-4-imbrenda@linux.ibm.com>
15 lines
456 B
C
15 lines
456 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);
|
|
|
|
#endif /* _ASM_S390_GMAP_HELPERS_H */
|