Re: [PATCH 17/25] x86/sgx: Support complete page removal

From: Reinette Chatre
Date: Mon Dec 06 2021 - 16:49:53 EST


Hi Jarkko,

On 12/4/2021 3:45 PM, Jarkko Sakkinen wrote:
On Wed, Dec 01, 2021 at 11:23:15AM -0800, Reinette Chatre wrote:

...

diff --git a/arch/x86/include/uapi/asm/sgx.h b/arch/x86/include/uapi/asm/sgx.h
index f70caccd166c..6648ded960f8 100644
--- a/arch/x86/include/uapi/asm/sgx.h
+++ b/arch/x86/include/uapi/asm/sgx.h
@@ -33,6 +33,8 @@ enum sgx_page_flags {
_IOWR(SGX_MAGIC, 0x05, struct sgx_page_modp)
#define SGX_IOC_PAGE_MODT \
_IOWR(SGX_MAGIC, 0x06, struct sgx_page_modt)
+#define SGX_IOC_PAGE_REMOVE \
+ _IOWR(SGX_MAGIC, 0x07, struct sgx_page_remove)

Should be SGX_IOC_ENCLAVE_REMOVE_PAGES.


Will do.

Reinette