hyperlight-dev / hyperlight-dev/hyperlight

Factor out handling of architecture-dependent snapshot state

Open
#1,694 0 comments 0 reactions 0 assignees View on GitHub
lifecycle/confirmed
Dominant language
Rust
Stars
4.7k
Forks
208
Avg merge
1d 7h
Merged PRs (30d)
47

Description

Currently, there are no architecture-dependent hooks that can add things to snapshot/restore state. Because of this, as of #991, all of the ostensibly architecture-independent code on the snapshot save/restore path ends up with a bunch of `#[cfg(target_arch = "x86_64")]` state threaded through it. It would be nice to factor that out into something that makes it easier to add architecture-dependent state.

(This issue extracted from a comment on #991: https://github.com/hyperlight-dev/hyperlight/pull/991/changes#r3625046429)

Contributor guide

Open the contributing guide

Research direction

Start with the snapshot save/restore path discussed in issue #1694 and the extracted context from pull request #991. Trace where #[cfg(target_arch = "x86_64")] state is threaded through architecture-independent code, then identify the hooks needed for architecture-dependent snapshot state. Done means the existing behavior is preserved while future architecture-specific state can be added without repeating that threading.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.