tee: Use iov_iter to better support shared buffer registration
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Tue, 5 Dec 2023 16:23:30 +0000 (17:23 +0100)
committerJens Wiklander <jens.wiklander@linaro.org>
Wed, 13 Dec 2023 06:23:22 +0000 (07:23 +0100)
commit7bdee41575919773818e525ea19e54eb817770af
tree37c58d9287d1bdb450d0ea09d8a99e7f11b4d7a7
parentb85ea95d086471afb4ad062012a4d73cd328fa86
tee: Use iov_iter to better support shared buffer registration

Currently it's not possible to register kernel buffers with TEE
which are allocated via vmalloc.

Use iov_iter and associated helper functions to manage the page
registration for all type of memories.

Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/tee_shm.c