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
{{ message }}
Repository navigation
[Feature]: [mm_supv] Better support of error handling #2000
This feature request is around the error handling, especially inside the syscall dispatcher. Current implementation is consistent with the C supervisor version where the error will trigger an assert or explicit breakpoint.
But the c version will demote the execution once and try to log a WHEA error, yet Rust supv will panic. This feature is to request a better handling of the errors encountered in syscall dispatcher and add the WHEA support.
Solution Overview
On the supervisor side, the handling is on the logical progression. The current implementation of syscall interface cannot support multiple returns, thus a status code + read value will be careful during development.
While it will be good to enable the WHEA completely, the backend of the WHEA logger is dependent on the UEFI variable, which is not yet available. Thus we would need to rely on the current C version of error reporting and switch over to the rust component implementation once the variable support is available.
Alternatives Considered
We can treat the syscall violation as fatal for now because it is consistent with the C implementation. But this proper error handling is needed when scaling out to other partners.
Activity
[-][Feature]: Better support of error handling[/-][+][Feature]: [mm_supv] Better support of error handling[/+]