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

Add support for creating threads on ARM #355

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

ayrtonm
Copy link
Contributor

@ayrtonm ayrtonm commented May 28, 2024

The threads test now builds and should work modulo stack alignment in ia2_thread_begin. Running the test hits a fault before it gets to create a thread, but I need to review the test handler header ARM impl before relying on tests' error messages.

@ayrtonm ayrtonm force-pushed the am/qemu_tests branch 20 times, most recently from f620a28 to ff75a18 Compare May 29, 2024 03:48
@fw-immunant fw-immunant changed the base branch from am/qemu_tests to main June 3, 2024 18:52
@fw-immunant
Copy link
Contributor

As noted in tests/threads: Fix asserted MTE tag values, we'll need call gates before this passes CI.

Making this API arch-independent seems like a more sane approach, but there is
another copy of these functions in ia2_get_pkey.h. I assumed that this was to be
able to call it without changing into the compartment with libia2.a but it seems
like we don't include it anywhere so it may be dead code. I fixed the usage of
this API in the tests in a separate commit but we still need to fix it in
PartitionAlloc and its shim.
Note: this needs x18 switching in the call gates to pass
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.

2 participants