]> git.baikalelectronics.ru Git - kernel.git/commit
x86/sgx: Export sgx_encl_page_alloc()
authorJarkko Sakkinen <jarkko@kernel.org>
Tue, 10 May 2022 18:08:49 +0000 (11:08 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 7 Jul 2022 17:13:02 +0000 (10:13 -0700)
commit3ae92d49bd88b48688084ee0bb56c98ea1afaa4f
tree35842d349cfdc9e895e8e0f94af83596df253ab8
parent1919e032049acda7467464bb5e5fd4083f5f1a01
x86/sgx: Export sgx_encl_page_alloc()

Move sgx_encl_page_alloc() to encl.c and export it so that it can be
used in the implementation for support of adding pages to initialized
enclaves, which requires to allocate new enclave pages.

Signed-off-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>
Link: https://lkml.kernel.org/r/57ae71b4ea17998467670232e12d6617b95c6811.1652137848.git.reinette.chatre@intel.com
arch/x86/kernel/cpu/sgx/encl.c
arch/x86/kernel/cpu/sgx/encl.h
arch/x86/kernel/cpu/sgx/ioctl.c