xen/arm: optee: limit number of shared buffers
authorVolodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Wed, 18 Sep 2019 18:50:59 +0000 (18:50 +0000)
committerJulien Grall <julien.grall@arm.com>
Mon, 23 Sep 2019 10:23:41 +0000 (11:23 +0100)
commit96383955f66fed348181552cd9b28f083afca00e
treedb43fd28d5213aed27fd98732de40123f23dcfa7
parent208bef44c6e709251c4d1bbf647dc29a292119c8
xen/arm: optee: limit number of shared buffers

We want to limit number of shared buffers that guest can register in
OP-TEE. Every such buffer consumes XEN resources and we don't want
guest to exhaust XEN. So we choose arbitrary limit for shared buffers.

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/tee/optee.c