hyperlight-dev / hyperlight-dev/hyperlight

Allow configuration of guest trace storage

未关闭
#1,008 1 条评论 0 个 reaction 已指派 1 人 已被 @dblnz 认领 在 GitHub 查看
good first issue help-wanted lifecycle/confirmed
主要语言
Rust
星标
4.7k
派生
208
平均合并
1 天 7 小时
30 天内合并 PR
47

描述

## 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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。