Allow snapshot-backed `SandboxBuilder` to accept a complete `SandboxConfiguration`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- api, infrastructure
調査の方向性
Start at hyperlight_host::SandboxBuilder::from_snapshot() and the existing SandboxConfiguration handling for fresh sandboxes. Trace which snapshot-owned structural values and restorer-owned settings are applied, then add the proposed configuration input without changing restore semantics. Done means interrupt, crashdump, GDB, and other available non-structural settings come from the supplied configuration.
索引モデルが issue の本文から書いたものです。
説明
Problem
Hyperlight-JS stores construction settings in a SandboxConfiguration. Its fresh-sandbox path forwards that configuration to Hyperlight, but its snapshot restoration path discards it and creates a hyperlight_host::SandboxBuilder::from_snapshot() using Hyperlight defaults.
This loses any configured non-structural construction settings available for the current platform and feature set, including interrupt configuration, per-sandbox crashdump enablement, and GDB configuration. These settings cannot be changed after the restored MultiUseSandbox is built.
Hyperlight's snapshot builder exposes per-field methods for these values, so Hyperlight-JS could separately retain and replay every setting. However, that would duplicate Hyperlight's configuration state, require wrapper changes whenever settings are added, and cannot reconstruct fields whose SandboxConfiguration getters are not public.
The snapshot builder should therefore accept a complete SandboxConfiguration. Hyperlight's existing low-level restore semantics should remain unchanged: snapshot-owned heap, scratch, and transport geometry override caller values, while non-structural construction settings come from the restoring host.
Proposed API
let sandbox = SandboxBuilder::from_snapshot(snapshot)
.sandbox_configuration(config)
.build()?;
Snapshot-owned structural values are still applied. Other restorer-owned settings should come from the supplied configuration.
Maybe we should split the configuration into 2 different structs to make this cleaner
- 主要言語
- Rust
- スター
- 4.8k
- フォーク
- 223
- 平均マージ
- 1日 18時間
- マージ済み PR(30日)
- 65
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hyperlight-dev/hyperlight のほかの issue
-
A-api C-bug S-confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
hyperlight-dev/hyperlight#2135 ·
メンテナーはふだん 1 日以内に返信
-
C-bug S-confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
hyperlight-dev/hyperlight#2136 ·
メンテナーはふだん 1 日以内に返信
-
C-bug S-confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
hyperlight-dev/hyperlight#2132 ·
メンテナーはふだん 1 日以内に返信
-
C-bug S-confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
hyperlight-dev/hyperlight#2133 ·
メンテナーはふだん 1 日以内に返信
-
A-ci A-fuzzing C-bug S-confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
hyperlight-dev/hyperlight#2134 ·
メンテナーはふだん 1 日以内に返信
hyperlight-dev/hyperlight の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
roc-lang/basic-webserver#277 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
samkerrcode/opengent#113 ·
メンテナーはふだん 1 日以内に返信
-
app bug session
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信