Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RISC-V Svinval, Svnapot and Svpbmt extensions support #62

Open
edubart opened this issue May 29, 2023 · 0 comments
Open

RISC-V Svinval, Svnapot and Svpbmt extensions support #62

edubart opened this issue May 29, 2023 · 0 comments
Labels
optimization Optimization

Comments

@edubart
Copy link
Contributor

edubart commented May 29, 2023

Context

The new RISC-V spec introduces new extensions related to address translations that have potential to optimize TLB, even more so with Hypervisor (issue #60).

  • Svnapot - Standard Extension for NAPOT Translation Contiguity: This extension was created to relieve TLB pressure in some scenarios, and might be worth investigating.
  • Svpbmt - Standard Extension for Page-Based Memory Types: This extension is related to page specific memory attributes, may not be relevant for us.
  • Svinval - Standard Extension for Fine-Grained Address-Translation: This extension can minimize invalidation of TLB entries, and might be worth investigating.

Some of these extensions are already being used by the recent Linux kernel.

Possible solutions

We should read the spec, try to implement, and benchmark if there are any gains in performance. Ideally this should be done after hypervisor (issue #44) and decoder optimization (issue #48), so the CPU margin used by the TLB is less negligible.

@edubart edubart added the enhancement New feature or request label May 29, 2023
@edubart edubart self-assigned this May 29, 2023
@edubart edubart added optimization Optimization and removed enhancement New feature or request labels May 29, 2023
@edubart edubart removed their assignment Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Optimization
Projects
Status: Todo
Development

No branches or pull requests

1 participant