hyperlight-dev / hyperlight-dev/hyperlight

Allow configuration of guest trace storage

Aperta
#1,008 1 commento 0 reazioni 1 assegnatario Rivendicata da @dblnz Vedi su GitHub
good first issue help-wanted lifecycle/confirmed
Lingua principale
Rust
Stelle
4.7k
Fork
208
Merge medio
1g 7h
PR unite (30g)
47

Descrizione

## Description
Currently, we have a [fixed capacity](https://github.com/hyperlight-dev/hyperlight/blob/main/src/hyperlight_guest_tracing/src/state.rs#L52) for the `Vec` that stores the guest tracing events.
We want to allow the guest to configure the maximum space allowed to be allocated for the traces.

## Rationale
`Hyperlight` does not know the guest's memory use constraints, hence allowing a guest to configure its preference at runtime, gives flexibility to the users.

## How
One option would be to use a weak symbol in the guest, for which `hyperlight` provides a `default` implementation.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.