Re: [PATCH v5 5/9] dma-buf: heaps: restricted_heap: Add private heap ops

2024-06-28 Thread Thierry Reding
On Wed, May 15, 2024 at 07:23:04PM GMT, Yong Wu wrote: > Add "struct restricted_heap_ops". For the restricted memory, totally there > are two steps: > a) alloc: Allocate the buffer in kernel; > b) restrict_buf: Restrict/Protect/Secure that buffer. > The "alloc" is mandatory while "restrict_buf" is

[PATCH v5 5/9] dma-buf: heaps: restricted_heap: Add private heap ops

2024-05-15 Thread Yong Wu
Add "struct restricted_heap_ops". For the restricted memory, totally there are two steps: a) alloc: Allocate the buffer in kernel; b) restrict_buf: Restrict/Protect/Secure that buffer. The "alloc" is mandatory while "restrict_buf" is optional since it may be part of "alloc". Signed-off-by: Yong Wu