microsoft / microsoft/litebox

Extend litebox context to include xsave state

Open
#485 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement layer-litebox
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.