riscv-non-isa/riscv-ap-tee

[Qualcomm feedback] Chapter 5.3 Clarify recommendations for re-entrant TSM

rsahita opened this issue · 2 comments

Reference: link

The TSM is stateless across TEECALL invocations, however a security routine invoked in the TSM
via a TEECALL may be interrupted and must be resumed via a TEERESUME i.e. the TSM is
preemptable but non-reentrant.

How can it be stateless if it's holding TVM memory mapping information?

this is not really an explanation for the previous sentence. An interrupted TEECALL needs to be resumed by a TEERESUME even when the TSM is reentrant. Overall this explanation is just confusing.

this should say
The TSM-driver is stateless...