Extend litebox context to include xsave state
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.7k
- Forks
- 144
- Avg merge
- 12h 21m
- Merged PRs (30d)
- 146
Description
The current litebox context is effectively litebox_common_linux::PtRegs. This does not include xsave state, meaning that FP state could be trashed across an exception or interrupt.
To fix this, move PtRegs into litebox and extend it with xsave support. This should probably be lazily saved/restored in platforms where that's an option.
https://github.com/microsoft/litebox/pull/482#discussion_r2514949016_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the current litebox_common_linux::PtRegs context and the linked discussion in pull request 482. Determine how PtRegs can move into litebox and what xsave state must cover across exceptions and interrupts. Done means the context preserves xsave state, with lazy save/restore where supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100