Allow snapshot-backed `SandboxBuilder` to accept a complete `SandboxConfiguration`
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- rust
- Bereich
- api, infrastructure
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Rust
- Sterne
- 4.8k
- Forks
- 223
- Ø Merge
- 1 T. 18 Std.
- Gemergte PRs (30 T.)
- 65
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus hyperlight-dev/hyperlight
-
A-api C-bug S-confirmed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
hyperlight-dev/hyperlight#2135 ·
Maintainer antworten meist innerhalb von 1 Tag
-
C-bug S-confirmed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
hyperlight-dev/hyperlight#2136 ·
Maintainer antworten meist innerhalb von 1 Tag
-
C-bug S-confirmed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
hyperlight-dev/hyperlight#2132 ·
Maintainer antworten meist innerhalb von 1 Tag
-
C-bug S-confirmed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
hyperlight-dev/hyperlight#2133 ·
Maintainer antworten meist innerhalb von 1 Tag
-
A-ci A-fuzzing C-bug S-confirmed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
hyperlight-dev/hyperlight#2134 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in hyperlight-dev/hyperlight
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
roc-lang/basic-webserver#277 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
samkerrcode/opengent#113 ·
Maintainer antworten meist innerhalb von 1 Tag
-
app bug session
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag