Skip to content

Consider not resetting FPU state before each guest call #2082

Closed

Description

@ludfjig

Each guest call resets the FPU with set_fpu, which costs performance. This isn't needed since guest calls aren't a security boundary. Restore is.

// reset fpu
self.vm
.set_fpu(&CommonFpu::default())
.map_err(DispatchGuestCallError::SetupRegs)?;

Activity

  1. added
    C-enhancementFor PRs adding features, improving functionality, docs, tests, etc.
    A-perfAddresses performance
    on Nov 20, 2026
  2. added a commit that references this issue on Nov 20, 2026
    d5d5c93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-perfAddresses performanceC-enhancementFor PRs adding features, improving functionality, docs, tests, etc.S-needs-triageThe issue has not yet been reviewed.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions