diff --git a/0003-no-copy-shared-memory.patch b/0003-no-copy-shared-memory.patch new file mode 100644 index 0000000000000000000000000000000000000000..f5e822e24bee1d39bc8c68733b4f98f6900d7afd --- /dev/null +++ b/0003-no-copy-shared-memory.patch @@ -0,0 +1,46 @@ +From 790d125b5422de0dbcaec67c88aa89d58b258c58 Mon Sep 17 00:00:00 2001 +From: root +Date: Fri, 6 May 2022 19:35:30 +0800 +Subject: [PATCH] lilianhui1@huawei.com + +Signed-off-by: root +--- + include/CA/tee_client_constants.h | 2 ++ + include/TA/tee_defines.h | 1 + + 2 files changed, 3 insertions(+) + +diff --git a/include/CA/tee_client_constants.h b/include/CA/tee_client_constants.h +index 9ddff9b..3b86dcb 100644 +--- a/include/CA/tee_client_constants.h ++++ b/include/CA/tee_client_constants.h +@@ -66,6 +66,7 @@ enum TEEC_SharedMemCtl { + TEEC_MEM_INPUT = 0x1, /* input type of memroy */ + TEEC_MEM_OUTPUT = 0x2, /* output type of memory */ + TEEC_MEM_INOUT = 0x3, /* memory is used as both input and output */ ++ TEEC_MEM_SHARED_INOUT = 0x4, /* no copy shared memory */ + }; + + enum TEEC_ParamType { +@@ -79,6 +80,7 @@ enum TEEC_ParamType { + refer TEEC_TempMemoryReference */ + TEEC_ION_INPUT = 0x08, /* input type of icon memory reference, refer TEEC_IonReference */ + TEEC_ION_SGLIST_INPUT = 0x09, /* input type of ion memory block reference, refer TEEC_IonSglistReference */ ++ TEEC_MEMREF_SHARED_INOUT = 0xa, /* no copy mem */ + TEEC_MEMREF_WHOLE = 0xc, /* use whole memory block, refer TEEC_RegisteredMemoryReference */ + TEEC_MEMREF_PARTIAL_INPUT = 0xd, /* input type of memory reference, refer TEEC_RegisteredMemoryReference */ + TEEC_MEMREF_PARTIAL_OUTPUT = 0xe, /* output type of memory reference, refer TEEC_RegisteredMemoryReference */ +diff --git a/include/TA/tee_defines.h b/include/TA/tee_defines.h +index 8289c07..8fa7ada 100755 +--- a/include/TA/tee_defines.h ++++ b/include/TA/tee_defines.h +@@ -84,6 +84,7 @@ enum TEE_ParamType { + TEE_PARAM_TYPE_MEMREF_INOUT = 0x7, + TEE_PARAM_TYPE_ION_INPUT = 0x8, + TEE_PARAM_TYPE_ION_SGLIST_INPUT = 0x9, ++ TEE_PARAM_TYPE_MEMREF_SHARED_INOUT = 0xa, + }; + + #define S_VAR_NOT_USED(variable) \ +-- +2.27.0 + diff --git a/itrustee_sdk.spec b/itrustee_sdk.spec index 66855996771ebee3e0f6ab9c61ce425c2388a4f7..c1a0b5d10474c9b63316d4ff60f26643dd29d3cd 100644 --- a/itrustee_sdk.spec +++ b/itrustee_sdk.spec @@ -1,6 +1,6 @@ Name: itrustee_sdk Version: 0.1.0 -Release: 6 +Release: 7 Summary: Confidential computing framework for developing TA on itrustee OS ExclusiveArch: aarch64 @@ -10,6 +10,7 @@ URL: https://gitee.com/openeuler/itrustee_sdk Source0: https://gitee.com/openeuler/itrustee_sdk/repository/archive/v%{version}.tar.gz Patch0: 0001-add-Makefile-to-create-libteec_adaptor.so.patch Patch1: 0002-add-ftrapv-strip-and-FS-as-the-compiling-flags.patch +Patch2: 0003-no-copy-shared-memory.patch Provides: libteec_adaptor.so()(64bit) %define debug_package %{nil} @@ -43,6 +44,9 @@ strip %{buildroot}/lib64/*.so %{_sysconfdir}/itrustee/cloud/rsa_public_key_cloud.pem %changelog +* Wed Aug 03 2022 wangyu - 0.1.0-7 +- DESC: support: no-copy shared memory + * Thu Jun 30 2022 gaoyusong - 0.1.0-6 - DESC: add yaml file for itrustee_sdk