]> Git Repo - linux.git/blob - arch/powerpc/include/asm/mem_encrypt.h
mm: abstract the vma_merge()/split_vma() pattern for mprotect() et al.
[linux.git] / arch / powerpc / include / asm / mem_encrypt.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * SVM helper functions
4  *
5  * Copyright 2018 IBM Corporation
6  */
7
8 #ifndef _ASM_POWERPC_MEM_ENCRYPT_H
9 #define _ASM_POWERPC_MEM_ENCRYPT_H
10
11 #include <asm/svm.h>
12
13 static inline bool force_dma_unencrypted(struct device *dev)
14 {
15         return is_secure_guest();
16 }
17
18 int set_memory_encrypted(unsigned long addr, int numpages);
19 int set_memory_decrypted(unsigned long addr, int numpages);
20
21 #endif /* _ASM_POWERPC_MEM_ENCRYPT_H */
This page took 0.036939 seconds and 4 git commands to generate.