Arm64-SVE: Add scheme for scalable SVE state in the CONTEXT record - #133152
Open
snickolls-arm wants to merge 2 commits into
Open
snickolls-arm wants to merge 2 commits into
snickolls-arm wants to merge 2 commits into
Conversation
Replaces the fixed-length SVE state from the CONTEXT record with dynamically allocated space, similar to XSTATE, for saving and restoring vector/predicate register state, and the first-faulting register. This reduces the size of the CONTEXT structure, as the SVE state is now optional. Subsystems that want to consume SVE state should set XSTATE_MASK_ARM64_SVE in CONTEXT::XStateFeaturesMask and allocate sufficient storage space for the trailer.
18 tasks
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
Author
|
@dotnet/arm64-contrib I originally planned this work thinking that it was necessary to ensure SVE vector state is preserved across suspension, though I have learned that it's not while writing this patch, as the OS suspension context will do that already. IIUC x64 saves its vector state in I have tried to keep this data structure as simple as possible so it's easy to port to |
Contributor
|
@janvorli would you be an appropriate person to take a look here? pal/CONTEXT changes |
This branch has not been deployed
This file contains hidden or 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
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.
Replaces the fixed-length SVE state from the
CONTEXTrecord with dynamically allocated space, similar to XSTATE, for saving and restoring vector/predicate register state, and the first-faulting register.This reduces the size of the CONTEXT structure, as the SVE state is now optional. Subsystems that want to consume SVE state should set
XSTATE_MASK_ARM64_SVEinCONTEXT::XStateFeaturesMaskand allocate sufficient storage space for the trailer.