You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the tracing underlying storage to a circular buffer for traces/events to avoid context switches. This ensures the guest doesn't do host calls to further degrade performance. Trace/logs loss is an acceptable compromise
Provide a mechanism on the guest to enable/disable the tracing support, configure the memory used and log level at runtime
Consider changing to a heap allocated circular buffer, which is runtime configurable
Use flatbuffers to serialize the data exchanged between the guest and host
Having the configuration option on the guest side, the guest can say how much space it is acceptable to use for traces/logs buffering.
Making VMExits to report traces has a performance penalty.
Having the configuration option on the guest side, the guest can say how much space it is acceptable to use for traces/logs buffering. Making VMExits to report traces has a performance penalty.
Understood, I am saying that we should not make the decision on if to trade off data loss for perf for a host, they should make that decision themselves.
Following some thought and code review of the logging/tracing state in hyperlight, here are some thoughts about tracing/logging I think we could do before 1.0.0:
remove trace_guest cargo feature and allow tracing to be enabled at runtime
Add a way to filter the guest traces and logs
allow configurable size for trace data. It is currently hardcoded to 4k
Have a common logic of sending logs/traces between the GuestLogger and the Subscriber. Logger vs tracing subscriber.
I was thinking maybe we could only use a Tracing subscriber that captures both logs and spans and remove the GuestLogger
We could have a setting per guest call to immediately flush the logs or use the same logic as tracing has (batch until the buffer gets full)
Activity
simongdavies commentedon Oct 22, 2025
I think this is only true if the host can make the decision that they are willing to suffer log/trace loss.
dblnz commentedon Oct 22, 2025
Having the configuration option on the guest side, the guest can say how much space it is acceptable to use for traces/logs buffering.
Making VMExits to report traces has a performance penalty.
simongdavies commentedon Oct 23, 2025
Understood, I am saying that we should not make the decision on if to trade off data loss for perf for a host, they should make that decision themselves.
haltfunction is called #1032dblnz commentedon Nov 25, 2026
Following some thought and code review of the logging/tracing state in hyperlight, here are some thoughts about tracing/logging I think we could do before 1.0.0:
trace_guestcargo feature and allow tracing to be enabled at runtimeGuestLoggerand theSubscriber. Logger vs tracing subscriber.GuestLogger