x86/sgx: Export sgx_encl_{grow,shrink}()
In order to use sgx_encl_{grow,shrink}() in the page augmentation code located in encl.c, export these functions. Suggested-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Link: https://lkml.kernel.org/r/d51730acf54b6565710b2261b3099517b38c2ec4.1652137848.git.reinette.chatre@intel.com
This commit is contained in:
parent
8cb7b502f3
commit
3a53514152
|
@ -120,5 +120,7 @@ bool sgx_va_page_full(struct sgx_va_page *va_page);
|
|||
void sgx_encl_free_epc_page(struct sgx_epc_page *page);
|
||||
struct sgx_encl_page *sgx_encl_load_page(struct sgx_encl *encl,
|
||||
unsigned long addr);
|
||||
struct sgx_va_page *sgx_encl_grow(struct sgx_encl *encl);
|
||||
void sgx_encl_shrink(struct sgx_encl *encl, struct sgx_va_page *va_page);
|
||||
|
||||
#endif /* _X86_ENCL_H */
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include "encl.h"
|
||||
#include "encls.h"
|
||||
|
||||
static struct sgx_va_page *sgx_encl_grow(struct sgx_encl *encl)
|
||||
struct sgx_va_page *sgx_encl_grow(struct sgx_encl *encl)
|
||||
{
|
||||
struct sgx_va_page *va_page = NULL;
|
||||
void *err;
|
||||
|
@ -43,7 +43,7 @@ static struct sgx_va_page *sgx_encl_grow(struct sgx_encl *encl)
|
|||
return va_page;
|
||||
}
|
||||
|
||||
static void sgx_encl_shrink(struct sgx_encl *encl, struct sgx_va_page *va_page)
|
||||
void sgx_encl_shrink(struct sgx_encl *encl, struct sgx_va_page *va_page)
|
||||
{
|
||||
encl->page_cnt--;
|
||||
|
||||
|
|
Loading…
Reference in New Issue