xen/arm: optee: add OP-TEE mediator skeleton
authorVolodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Tue, 11 Jun 2019 18:46:26 +0000 (18:46 +0000)
committerJulien Grall <julien.grall@arm.com>
Wed, 19 Jun 2019 11:05:04 +0000 (12:05 +0100)
commit2e35cdf9b2ca5521ad57d6a0857d7af4099e46da
treea1ee24503024e3844d9a3e34a13400992bcb2aed
parente2bc46ac70443226488ff91f2c21fd09fc83987e
xen/arm: optee: add OP-TEE mediator skeleton

Add very basic OP-TEE mediator. It can probe for OP-TEE presence,
tell it about domain creation/destruction and then return an error
to all calls to the guest.

This code issues two non-preemptible calls to OP-TEE: to create and
to destroy client context. They can't block in OP-TEE, as they are
considered "fast calls" in terms of ARM SMCCC.

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/Kconfig
xen/arch/arm/domain.c
xen/arch/arm/tee/Kconfig [new file with mode: 0644]
xen/arch/arm/tee/Makefile
xen/arch/arm/tee/optee.c [new file with mode: 0644]
xen/include/asm-arm/domain.h
xen/include/public/arch-arm.h