Searched hist:"13616 e886edc3680c03cdd455fa53fee5a9cba6d" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/arch/arm/mm/ |
| H A D | tee_pager.c | 13616e886edc3680c03cdd455fa53fee5a9cba6d Mon Jan 25 10:39:05 UTC 2021 Jens Wiklander <jens.wiklander@linaro.org> core: pager: support paging of tag and IV
Adds support for paging of the tag and IV protecting some read-write fobjs. The tag and IV needed to decrypt/encrypt a page are accessed by the pager. Since the pager can't handle page fault caused by itself special measures are taken to make sure that the needed tag and IV are accessible when needed.
tee_pager_get_page() and tee_pager_load_page() are replaced by pager_get_page() which does what the previous functions used plus the additional logic to handle paging of tag and IV.
A new function tee_pager_init_iv_area() is added. It enables registration of a read/write paged fobj spanning the area used for storing all tags and IVs. This fobj must store its tags and IVs in unpaged memory, for instance the heap.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
|