Allow snapshot-backed `SandboxBuilder` to accept a complete `SandboxConfiguration`
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- api, infrastructure
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Rust
- Estrellas
- 4.8k
- Forks
- 223
- Merge medio
- 1 d 18 h
- PR fusionados (30 d)
- 65
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de hyperlight-dev/hyperlight
-
A-api C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
hyperlight-dev/hyperlight#2135 ·
Los mantenedores suelen responder en 1 día
-
C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
hyperlight-dev/hyperlight#2136 ·
Los mantenedores suelen responder en 1 día
-
C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
hyperlight-dev/hyperlight#2132 ·
Los mantenedores suelen responder en 1 día
-
C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
hyperlight-dev/hyperlight#2133 ·
Los mantenedores suelen responder en 1 día
-
A-ci A-fuzzing C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
hyperlight-dev/hyperlight#2134 ·
Los mantenedores suelen responder en 1 día
Todos los issues de hyperlight-dev/hyperlight
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
roc-lang/basic-webserver#277 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
samkerrcode/opengent#113 ·
Los mantenedores suelen responder en 1 día
-
app bug session
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día