Skip to content

Add run_thread to LVBS platform and revise its syscall handling#566

Merged
sangho2 merged 5 commits intosanghle/lvbs/fix_vtl_switchfrom
sanghle/lvbs/runthread
Jan 22, 2026
Merged

Add run_thread to LVBS platform and revise its syscall handling#566
sangho2 merged 5 commits intosanghle/lvbs/fix_vtl_switchfrom
sanghle/lvbs/runthread

Conversation

@sangho2
Copy link
Contributor

@sangho2 sangho2 commented Dec 18, 2025

This PR adds run_thread support for LVBS platform and revise its syscall handling routine based on
Linux userland platform's syscall handling. It has suppressed new page table creation for now
because it needs to be done by the runner via an upcall (userspace support still exists, but doesn't
create a separate one for each TA instance for now).

@sangho2 sangho2 force-pushed the sanghle/lvbs/fix_vtl_switch branch from 898c3d5 to 1cbad25 Compare December 18, 2025 22:47
@sangho2 sangho2 force-pushed the sanghle/lvbs/runthread branch 2 times, most recently from 120d077 to 657ec94 Compare December 18, 2025 23:01
@sangho2 sangho2 marked this pull request as ready for review December 18, 2025 23:04
@wdcui wdcui requested a review from jstarks January 2, 2026 22:42
@praveen-pk
Copy link

runner via an upcall

What do you mean by an upcall here?

@sangho2
Copy link
Contributor Author

sangho2 commented Jan 7, 2026

runner via an upcall

What do you mean by an upcall here?

This is related to #556 and #564. Basically, we want to make the platform be unaware of OP-TEE stuffs. The platform delegates any OP-TEE commands to the runner and the shim via an upcall (technically, just a callback), and they will handle those commands.

@praveen-pk
Copy link

LGTM!. I am not familiar with the register handling, so not approving the PR.

Copy link
Member

@wdcui wdcui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, the code looks good to me. I left some comments below.

@sangho2
Copy link
Contributor Author

sangho2 commented Jan 21, 2026

Note. This PR still uses KernelTls to avoid conflicts. I'll rename this structure through #545 (or #541)

@sangho2 sangho2 force-pushed the sanghle/lvbs/fix_vtl_switch branch from 9f80306 to c85aac5 Compare January 22, 2026 05:34
@sangho2 sangho2 force-pushed the sanghle/lvbs/runthread branch from 3445eaf to 75dac12 Compare January 22, 2026 21:38
@sangho2 sangho2 merged commit 44f386b into sanghle/lvbs/fix_vtl_switch Jan 22, 2026
4 of 8 checks passed
@sangho2 sangho2 deleted the sanghle/lvbs/runthread branch January 22, 2026 21:42
sangho2 pushed a commit that referenced this pull request Jan 23, 2026
This PR adds `run_thread` support for LVBS platform and revise its
syscall handling routine based on
Linux userland platform's syscall handling. It has suppressed new page
table creation for now
because it needs to be done by the runner via an upcall (userspace
support still exists, but doesn't
create a separate one for each TA instance for now).

---------

Co-authored-by: Sangho Lee <sanghle@microsoft.com>
sangho2 pushed a commit that referenced this pull request Jan 23, 2026
This PR adds `run_thread` support for LVBS platform and revise its
syscall handling routine based on
Linux userland platform's syscall handling. It has suppressed new page
table creation for now
because it needs to be done by the runner via an upcall (userspace
support still exists, but doesn't
create a separate one for each TA instance for now).

---------

Co-authored-by: Sangho Lee <sanghle@microsoft.com>
sangho2 pushed a commit that referenced this pull request Jan 23, 2026
This PR adds `run_thread` support for LVBS platform and revise its
syscall handling routine based on
Linux userland platform's syscall handling. It has suppressed new page
table creation for now
because it needs to be done by the runner via an upcall (userspace
support still exists, but doesn't
create a separate one for each TA instance for now).

---------

Co-authored-by: Sangho Lee <sanghle@microsoft.com>
sangho2 pushed a commit that referenced this pull request Jan 24, 2026
This PR adds `run_thread` support for LVBS platform and revise its
syscall handling routine based on
Linux userland platform's syscall handling. It has suppressed new page
table creation for now
because it needs to be done by the runner via an upcall (userspace
support still exists, but doesn't
create a separate one for each TA instance for now).

---------

Co-authored-by: Sangho Lee <sanghle@microsoft.com>
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

Successfully merging this pull request may close these issues.

3 participants