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

Enable x2apic for regular guests #132

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Conversation

skinsbursky
Copy link
Collaborator

@skinsbursky skinsbursky commented Mar 18, 2024

Summary of the PR

This is needed to influence guest Linux to use physical address mode for MSIs (which it does by default when x2apic is enabled), which allows to support virtual interrupt injections in MSHV driver and thus improve overall VirtIO throughput.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR have Signed-Off-By trailers (with
    git commit -s), and the commit message has max 60 characters for the
    summary and max 75 characters for each description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

@NunoDasNeves NunoDasNeves self-requested a review March 18, 2024 23:15
Having x2apic enabled in Linux leads to MSI routing entries having physical
mode enabled by default, which in turn allows to apply interrupt injection
optimizations for the guests and increase the overall throughput.

Signed-off-by: Stanislav Kinsburskii <[email protected]>
@skinsbursky skinsbursky force-pushed the skinsburskii/mshv/enable-x2apic branch from e4a9e30 to 7af113a Compare March 19, 2024 17:26
@skinsbursky skinsbursky merged commit 094366a into main Mar 19, 2024
2 checks passed
@skinsbursky skinsbursky deleted the skinsburskii/mshv/enable-x2apic branch March 19, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants