Skip to content

[Feature]: [mm_supv] Better support of error handling #2000

Open

Description

@kuqin12

Feature Overview

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.

Urgency

Medium

Are you going to implement the feature request?

I will implement the feature

Do you need maintainer feedback?

No maintainer feedback needed

Anything else?

No response

Activity

  1. added
    state:needs-triage
    type:feature-request
    on Nov 18, 2026
  2. self-assigned this
    on Nov 18, 2026
  3. added
    urgency:medium
    on Nov 18, 2026
  4. changed the title [-][Feature]: Better support of error handling[/-] [+][Feature]: [mm_supv] Better support of error handling[/+] on Nov 18, 2026
  5. moved this to Backlog in Patinaon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

state:needs-triagetype:feature-requesturgency:medium

Type

No type

Projects

  • Status
    Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions