Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * SVM helper functions
0004  *
0005  * Copyright 2018 IBM Corporation
0006  */
0007 
0008 #ifndef _ASM_POWERPC_MEM_ENCRYPT_H
0009 #define _ASM_POWERPC_MEM_ENCRYPT_H
0010 
0011 #include <asm/svm.h>
0012 
0013 static inline bool force_dma_unencrypted(struct device *dev)
0014 {
0015     return is_secure_guest();
0016 }
0017 
0018 int set_memory_encrypted(unsigned long addr, int numpages);
0019 int set_memory_decrypted(unsigned long addr, int numpages);
0020 
0021 #endif /* _ASM_POWERPC_MEM_ENCRYPT_H */