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

Register arch_prctl through UK_LLSYSCALL_R_U_DEFINE #65

Merged
merged 3 commits into from Dec 23, 2023

Conversation

mogasergiu
Copy link
Member

@mogasergiu mogasergiu commented Nov 24, 2023

Allow the arch_prctl system call to have knowledge of the whole
context of the system call caller by registering it through a macro
that gives arch_prctl access to the caller's context through
struct uk_syscall_regs.

Depends on #63, #64 and #1175.

@mogasergiu
Copy link
Member Author

Latest force-push does nothing but rebase against newest #64 and s/UK_LLSYSCALL_R_DEFINE/UK_LLSYSCALL_R_U_DEFINE in commit message.

@mogasergiu mogasergiu changed the title Register arch_prctl through UK_LLSYCALL_R_DEFINE Register arch_prctl through UK_LLSYSCALL_R_U_DEFINE Dec 8, 2023
Copy link
Member

@michpappas michpappas left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Michalis Pappas michalis@unikraft.io

The core repository's thread creation API has undergone changes so that
the programmer may be able to allocate a custom/default auxiliary stack
for each thread they may create.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Allow the `arch_prctl` system call to have knowledge of the whole
context of the system call caller by registering it through a macro
that gives `arch_prctl` access to the caller's context through
`struct uk_syscall_regs`.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Now that all userland switching functionality has been migrated into
`ukarch_sysregs*` API's, adapt TLS store/restore accordingly.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

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

Approved-by: Razvan Deaconescu razvand@unikraft.io

@razvand razvand changed the base branch from stable to staging-65 December 23, 2023 13:27
@razvand razvand merged commit 484a44f into unikraft:staging-65 Dec 23, 2023
razvand pushed a commit that referenced this pull request Dec 23, 2023
The core repository's thread creation API has undergone changes so that
the programmer may be able to allocate a custom/default auxiliary stack
for each thread they may create.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #65
razvand pushed a commit that referenced this pull request Dec 23, 2023
Allow the `arch_prctl` system call to have knowledge of the whole
context of the system call caller by registering it through a macro
that gives `arch_prctl` access to the caller's context through
`struct uk_syscall_regs`.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #65
razvand pushed a commit that referenced this pull request Dec 23, 2023
Now that all userland switching functionality has been migrated into
`ukarch_sysregs*` API's, adapt TLS store/restore accordingly.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #65
razvand pushed a commit that referenced this pull request Jan 3, 2024
The core repository's thread creation API has undergone changes so that
the programmer may be able to allocate a custom/default auxiliary stack
for each thread they may create.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #65
razvand pushed a commit that referenced this pull request Jan 3, 2024
Allow the `arch_prctl` system call to have knowledge of the whole
context of the system call caller by registering it through a macro
that gives `arch_prctl` access to the caller's context through
`struct uk_syscall_regs`.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #65
razvand pushed a commit that referenced this pull request Jan 3, 2024
Now that all userland switching functionality has been migrated into
`ukarch_sysregs*` API's, adapt TLS store/restore accordingly.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #65
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.

None yet

3 participants