sgx.h (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) sgx.h (c7c6a8a61b0066ba7e891783032dc2a7873c6dc7)
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>

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

85
86struct sgx_epc_page *__sgx_alloc_epc_page(void);
87void sgx_free_epc_page(struct sgx_epc_page *page);
88
89void sgx_mark_page_reclaimable(struct sgx_epc_page *page);
90int sgx_unmark_page_reclaimable(struct sgx_epc_page *page);
91struct sgx_epc_page *sgx_alloc_epc_page(void *owner, bool reclaim);
92
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>

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

85
86struct sgx_epc_page *__sgx_alloc_epc_page(void);
87void sgx_free_epc_page(struct sgx_epc_page *page);
88
89void sgx_mark_page_reclaimable(struct sgx_epc_page *page);
90int sgx_unmark_page_reclaimable(struct sgx_epc_page *page);
91struct sgx_epc_page *sgx_alloc_epc_page(void *owner, bool reclaim);
92
93void sgx_ipi_cb(void *info);
94
93#ifdef CONFIG_X86_SGX_KVM
94int __init sgx_vepc_init(void);
95#else
96static inline int __init sgx_vepc_init(void)
97{
98 return -ENODEV;
99}
100#endif
101
102void sgx_update_lepubkeyhash(u64 *lepubkeyhash);
103
104#endif /* _X86_SGX_H */
95#ifdef CONFIG_X86_SGX_KVM
96int __init sgx_vepc_init(void);
97#else
98static inline int __init sgx_vepc_init(void)
99{
100 return -ENODEV;
101}
102#endif
103
104void sgx_update_lepubkeyhash(u64 *lepubkeyhash);
105
106#endif /* _X86_SGX_H */