OP-TEE / optee_os

Trusted side of the TEE
Other
1.61k stars 1.07k forks source link

Inquiry About When OP-TEE OS Runs in M Mode on RISC-V #7158

Open HuangBorong opened 5 days ago

HuangBorong commented 5 days ago

Hello,

I would like to inquire about the scenarios in which OP-TEE OS runs in M mode.

Thank you for your help!

gagachang commented 9 hours ago

@maroueneboubakri Do you have the use case?

maroueneboubakri commented 9 hours ago

Hi @gagachang, @HuangBorong,

A use-case is when dedicating a core to OP-TEE (a trusted hart) that may have only M+U modes. M-Mode for OP-TEE OS and U-Mode for TA. Other cores running Linux for example my interact with OP-TEE using mailbox-like mechanism or other.

We are still investigating this in our side, probably will remove this from the code-base in future.

Best Maro