diff mbox

[intel-sgx-kernel-dev,7/7] intel_sgx: add TRIM EPC page type definition.

Message ID 20170404072938.4800-8-kai.huang@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kai Huang April 4, 2017, 7:29 a.m. UTC
SGX2 adds a new 'TRIM' EPC page type.

Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
---
 arch/x86/include/asm/sgx.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Jarkko Sakkinen April 4, 2017, 2:16 p.m. UTC | #1
On Tue, Apr 04, 2017 at 07:29:38PM +1200, Kai Huang wrote:
> SGX2 adds a new 'TRIM' EPC page type.
> 
> Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
> ---
>  arch/x86/include/asm/sgx.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/x86/include/asm/sgx.h b/arch/x86/include/asm/sgx.h
> index 4ad580f..c40dc52 100644
> --- a/arch/x86/include/asm/sgx.h
> +++ b/arch/x86/include/asm/sgx.h
> @@ -71,6 +71,7 @@ enum sgx_page_type {
>  	SGX_PAGE_TYPE_TCS	= 0x01,
>  	SGX_PAGE_TYPE_REG	= 0x02,
>  	SGX_PAGE_TYPE_VA	= 0x03,
> +	SGX_PAGE_TYPE_TRIM	= 0x04,
>  };
>  
>  enum sgx_secinfo_flags {
> -- 
> 2.9.3
> 

This already exist in sgx20 branch so I won't take this.

/Jarkko
Kai Huang April 5, 2017, 12:38 a.m. UTC | #2
On 4/5/2017 2:16 AM, Jarkko Sakkinen wrote:
> On Tue, Apr 04, 2017 at 07:29:38PM +1200, Kai Huang wrote:
>> SGX2 adds a new 'TRIM' EPC page type.
>>
>> Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
>> ---
>>  arch/x86/include/asm/sgx.h | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/x86/include/asm/sgx.h b/arch/x86/include/asm/sgx.h
>> index 4ad580f..c40dc52 100644
>> --- a/arch/x86/include/asm/sgx.h
>> +++ b/arch/x86/include/asm/sgx.h
>> @@ -71,6 +71,7 @@ enum sgx_page_type {
>>  	SGX_PAGE_TYPE_TCS	= 0x01,
>>  	SGX_PAGE_TYPE_REG	= 0x02,
>>  	SGX_PAGE_TYPE_VA	= 0x03,
>> +	SGX_PAGE_TYPE_TRIM	= 0x04,
>>  };
>>
>>  enum sgx_secinfo_flags {
>> --
>> 2.9.3
>>
>
> This already exist in sgx20 branch so I won't take this.

No problem at all.

Thanks,
-Kai

>
> /Jarkko
> _______________________________________________
> intel-sgx-kernel-dev mailing list
> intel-sgx-kernel-dev@lists.01.org
> https://lists.01.org/mailman/listinfo/intel-sgx-kernel-dev
>
diff mbox

Patch

diff --git a/arch/x86/include/asm/sgx.h b/arch/x86/include/asm/sgx.h
index 4ad580f..c40dc52 100644
--- a/arch/x86/include/asm/sgx.h
+++ b/arch/x86/include/asm/sgx.h
@@ -71,6 +71,7 @@  enum sgx_page_type {
 	SGX_PAGE_TYPE_TCS	= 0x01,
 	SGX_PAGE_TYPE_REG	= 0x02,
 	SGX_PAGE_TYPE_VA	= 0x03,
+	SGX_PAGE_TYPE_TRIM	= 0x04,
 };
 
 enum sgx_secinfo_flags {