Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HuangBorong opened this issue Nov 29, 2024 · 5 comments
Open

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

HuangBorong opened this issue Nov 29, 2024 · 5 comments

Comments

@HuangBorong
Copy link
Contributor

Hello,

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

Thank you for your help!

@HuangBorong HuangBorong changed the title Inquiry About When OP-TEE OS Runs in M Mode Inquiry About When OP-TEE OS Runs in M Mode on RISC-V Nov 29, 2024
@gagachang
Copy link
Contributor

@maroueneboubakri Do you have the use case?

@maroueneboubakri
Copy link
Contributor

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

@gagachang
Copy link
Contributor

Thanks @maroueneboubakri

M-Mode for OP-TEE OS and U-Mode for TA.

In case there is no S-mode and virtual memory system, how do you construct isolation between TAs ?
Do you configure PMP before every TA execution ?

@HuangBorong
Copy link
Contributor Author

Thanks!

@maroueneboubakri
Copy link
Contributor

Thanks @maroueneboubakri

M-Mode for OP-TEE OS and U-Mode for TA.

In case there is no S-mode and virtual memory system, how do you construct isolation between TAs ? Do you configure PMP before every TA execution ?

That's correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants