[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [RFC 0/4] TEE mediator framework + OP-TEE mediator



Hello all,

I want to present TEE mediator, that was discussed earlier ([1]).

I selected design with built-in mediators. This is easiest way,
it removes many questions, it is easy to implement and maintain
(at least I hope so).

So, user can use Kconfig to build one or multiple mediators. During
boot, XEN will determine which TEE is running and initialize
corresponding mediator.

Framework puts a few hooks into other substems in order to be able
to work properly. It will be called during domain creation and
destruction and, obviously, to handle TEE SMCs.

Current implementation of OP-TEE mediator support only calls
from Dom0, but does this in full extent. All OP-TEE tests was
passed. I tested this on my Renesas Salvator X M3 board.

Also, I'm ready to be maintainer of this TEE mediators, if there
are no objections.

[1] https://marc.info/?l=xen-devel&m=148002191906172&w=2

Volodymyr Babchuk (4):
  arm: add SMC wrapper that is compatible with SMCCC
  arm: add generic TEE mediator framework
  arm: tee: add OP-TEE header files
  arm: tee: add basic OP-TEE mediator

 MAINTAINERS                     |   5 +
 xen/arch/arm/Kconfig            |  10 +
 xen/arch/arm/Makefile           |   1 +
 xen/arch/arm/arm32/Makefile     |   1 +
 xen/arch/arm/arm32/smc.S        |  32 +++
 xen/arch/arm/arm64/Makefile     |   1 +
 xen/arch/arm/arm64/smc.S        |  29 +++
 xen/arch/arm/domain.c           |   7 +
 xen/arch/arm/setup.c            |   4 +
 xen/arch/arm/tee/Kconfig        |   4 +
 xen/arch/arm/tee/Makefile       |   2 +
 xen/arch/arm/tee/optee.c        | 178 ++++++++++++++++
 xen/arch/arm/tee/optee_msg.h    | 444 ++++++++++++++++++++++++++++++++++++++
 xen/arch/arm/tee/optee_smc.h    | 457 ++++++++++++++++++++++++++++++++++++++++
 xen/arch/arm/tee/tee.c          | 134 ++++++++++++
 xen/arch/arm/vsmc.c             |   5 +
 xen/arch/arm/xen.lds.S          |   7 +
 xen/include/asm-arm/processor.h |   4 +
 xen/include/asm-arm/tee.h       |  79 +++++++
 19 files changed, 1404 insertions(+)
 create mode 100644 xen/arch/arm/arm32/smc.S
 create mode 100644 xen/arch/arm/arm64/smc.S
 create mode 100644 xen/arch/arm/tee/Kconfig
 create mode 100644 xen/arch/arm/tee/Makefile
 create mode 100644 xen/arch/arm/tee/optee.c
 create mode 100644 xen/arch/arm/tee/optee_msg.h
 create mode 100644 xen/arch/arm/tee/optee_smc.h
 create mode 100644 xen/arch/arm/tee/tee.c
 create mode 100644 xen/include/asm-arm/tee.h

-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.