-
Notifications
You must be signed in to change notification settings - Fork 55
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
switch to stable toolchain #755
Merged
jyao1
merged 6 commits into
confidential-containers:main
from
gaojiaqi7:1217/remove_naked_function
Dec 20, 2024
Merged
switch to stable toolchain #755
jyao1
merged 6 commits into
confidential-containers:main
from
gaojiaqi7:1217/remove_naked_function
Dec 20, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gaojiaqi7
changed the title
td-exception: use global asm to replace naked interrupt handler
switch to stable toolchain
Dec 18, 2024
gaojiaqi7
force-pushed
the
1217/remove_naked_function
branch
2 times, most recently
from
December 18, 2024 06:04
21e6f5c
to
d825b05
Compare
This was referenced Dec 18, 2024
gaojiaqi7
force-pushed
the
1217/remove_naked_function
branch
7 times, most recently
from
December 19, 2024 07:10
7187e49
to
802aabc
Compare
Integration test is disabled and tracked by a new issue #757 |
An interrupt handler table is used to handle all 256 interrupts. They share common handler that saves the interrupt vector and context. If the interrupt is not an error, a zero is pushed to the stack to align with the error one. Function `generic_interrupt_handler` is called to find and call the corresponding callback in the `CALLBACK_TABLE`. For virtualization exception, when the CET shadow stack is enabled, we need to update the LIP value in the shadow stack. As shadow stack saves the latest two return address after interrupt entry and the SSP, the position of saved LIP value is the top address of shadow stack minus 0x18 bytes. Signed-off-by: Jiaqi Gao <[email protected]>
Default features of `x86_64` use unstable feature which depends on nightly toolchain. Signed-off-by: Jiaqi Gao <[email protected]>
CI script, makefile and docs are updated. Signed-off-by: Jiaqi Gao <[email protected]>
Signed-off-by: Jiaqi Gao <[email protected]>
Signed-off-by: Jiaqi Gao <[email protected]>
Integration test depends on `bootloader` crates which locks the `x86_64` version which is not compatible with latest toolchain. Signed-off-by: Jiaqi Gao <[email protected]>
gaojiaqi7
force-pushed
the
1217/remove_naked_function
branch
from
December 19, 2024 14:48
802aabc
to
d23e202
Compare
jyao1
approved these changes
Dec 20, 2024
Closes #749 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An interrupt handler table is used to handle all 256 interrupts. They share common handler that saves the interrupt vector and context. If the interrupt is not an error, a zero is pushed to the stack to align with the error one.
Function
generic_interrupt_handler
is called to find and call the corresponding callback in theCALLBACK_TABLE
.For virtualization exception, when the CET shadow stack is enabled, we need to update the LIP value in the shadow stack. As shadow stack saves the latest two return address after interrupt entry and the SSP, the position of saved LIP value is the top address of shadow stack minus 0x18 bytes.
x86_64
crateDefault features of
x86_64
use unstable features of rust that depend on nightly toolchain.