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

Chapter 5.4 - Interruptible TSM with no re-entrancy - TSM enforcement #101

Open
eckhard-delfs-qualcomm opened this issue Sep 9, 2024 · 0 comments

Comments

@eckhard-delfs-qualcomm
Copy link
Contributor

Text states "The TSM-driver supports a TEERESUME ECALL which enables the TSM to enforce that the resumption of the interrupted TSM security routine is initiated by the OS/VMM on the same hart."

The TSM is scheduled to run by the VMM, so how can the TSM "enforce" that it is running on a specific hart, considering that it cannot "schedule itself"?
More in general, forcing the resume to happen on the same hart is too restrictive.
In practice the processing of the interrupt in the VM might cause the calling thread to migrate to a different core/hart, which is where it will initiate the resume from. (this would be typically the case when the interrupt was a timer for the VM OS scheduler and the VM is running on multiple cores/harts).

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

1 participant