hyperlight-dev / hyperlight-dev/hyperlight

[host/mem] Review `SharedMemory` trait

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

Description

We should review our APIs related to interacting w/ shared memory. In particular:
- `as_mut_slice`,
- `copy_from_slice`, and
- `copy_to_slice`.

These APIs allow read/writes to any shared memory offset. We should create higher-level abstractions to write to specific/named offsets.

Contributor guide

Open the contributing guide

Research direction

Start by locating the SharedMemory trait and its as_mut_slice, copy_from_slice, and copy_to_slice APIs, then review how callers use arbitrary offsets. Define and validate higher-level abstractions for specific or named offsets; the issue does not name tests or files, so the acceptance criteria need clarification.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
infrastructure, operating-systems
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.