Searched hist:aad1cf6bbe80ed145f48e8650b96119d835ee0a0 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/mm/ |
| H A D | fobj.c | aad1cf6bbe80ed145f48e8650b96119d835ee0a0 Mon Jan 25 10:39:12 UTC 2021 Jens Wiklander <jens.wiklander@linaro.org> core: fobj_rw_paged_alloc() store tags and IVs in paged area
fobj_rw_paged_alloc() is updated to store tags and IVs in a designated paged area instead of storing them in the heap. This avoids large heap allocations which also would suffer from a fragmented heap.
The previous ops_rw_paged and struct fobj_rwp are now replaced by ops_rwp_unpaged_iv and struct fobj_rwp_unpaged_iv respectively. These are now only used to support the area where other tags and IVs are stored.
A new ops_rwp_paged_iv and struct fobj_rwp_paged_iv are added for using the designated paged area.
A fobj based on the ops_rwp_unpaged_iv ops is allocated and registered with the pager via a callback registered with driver_init_late().
This effectively enables paging of IV and tags for pages mapping a TA.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
|