sgx.h (b0c7459be0670fabe080e30906ba9fe62df5e02c) sgx.h (540745ddbc70eabdc7dbd3fcc00fe4fb17cd59ba)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _X86_SGX_H
3#define _X86_SGX_H
4
5#include <linux/bitops.h>
6#include <linux/err.h>
7#include <linux/io.h>
8#include <linux/rwsem.h>

--- 70 unchanged lines hidden (view full) ---

79
80struct sgx_epc_page *__sgx_alloc_epc_page(void);
81void sgx_free_epc_page(struct sgx_epc_page *page);
82
83void sgx_mark_page_reclaimable(struct sgx_epc_page *page);
84int sgx_unmark_page_reclaimable(struct sgx_epc_page *page);
85struct sgx_epc_page *sgx_alloc_epc_page(void *owner, bool reclaim);
86
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _X86_SGX_H
3#define _X86_SGX_H
4
5#include <linux/bitops.h>
6#include <linux/err.h>
7#include <linux/io.h>
8#include <linux/rwsem.h>

--- 70 unchanged lines hidden (view full) ---

79
80struct sgx_epc_page *__sgx_alloc_epc_page(void);
81void sgx_free_epc_page(struct sgx_epc_page *page);
82
83void sgx_mark_page_reclaimable(struct sgx_epc_page *page);
84int sgx_unmark_page_reclaimable(struct sgx_epc_page *page);
85struct sgx_epc_page *sgx_alloc_epc_page(void *owner, bool reclaim);
86
87#ifdef CONFIG_X86_SGX_KVM
88int __init sgx_vepc_init(void);
89#else
90static inline int __init sgx_vepc_init(void)
91{
92 return -ENODEV;
93}
94#endif
95
87#endif /* _X86_SGX_H */
96#endif /* _X86_SGX_H */