Home
last modified time | relevance | path

Searched hist:e64b7b2e2edc0cdf2e87cc30c4902e87db706f2f (Results 1 – 2 of 2) sorted by relevance

/optee_os/lib/libutee/
H A Dtee_api.ce64b7b2e2edc0cdf2e87cc30c4902e87db706f2f Fri Dec 09 08:24:22 UTC 2022 Jens Wiklander <jens.wiklander@linaro.org> GP131: add support for TEE_MALLOC_NO_SHARE

Adds support for the TEE_MALLOC_NO_SHARE hint to TEE_Malloc(). With this
there is a check in TEE_OpenTASession() and TEE_InvokeTACommand() to see
that buffers allocated with this flag are passed on to other TAs.

A second memory pool is added to be used for memory allocations using
this flag. This means a new configuration variable,
TA_NO_SHARE_DATA_SIZE, for user_ta_header.h. It's set to 0 by default,
so by default nothing can be allocated using the TEE_MALLOC_NO_SHARE
hint.

Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
/optee_os/lib/libutee/include/
H A Duser_ta_header.he64b7b2e2edc0cdf2e87cc30c4902e87db706f2f Fri Dec 09 08:24:22 UTC 2022 Jens Wiklander <jens.wiklander@linaro.org> GP131: add support for TEE_MALLOC_NO_SHARE

Adds support for the TEE_MALLOC_NO_SHARE hint to TEE_Malloc(). With this
there is a check in TEE_OpenTASession() and TEE_InvokeTACommand() to see
that buffers allocated with this flag are passed on to other TAs.

A second memory pool is added to be used for memory allocations using
this flag. This means a new configuration variable,
TA_NO_SHARE_DATA_SIZE, for user_ta_header.h. It's set to 0 by default,
so by default nothing can be allocated using the TEE_MALLOC_NO_SHARE
hint.

Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>