Skip to content

soft_apic: Add some diagnostics - #4079

Merged
Steven Malis (smalis-msft) merged 2 commits into
microsoft:mainfrom
smalis-msft:more-diags
Jul 29, 2026
Merged

soft_apic: Add some diagnostics#4079
Steven Malis (smalis-msft) merged 2 commits into
microsoft:mainfrom
smalis-msft:more-diags

Conversation

@smalis-msft

Copy link
Copy Markdown
Contributor

We've had a few test flakes of openvmm_openhcl_uefi_x64_windows_datacenter_core_2022_x64_uefi_force_dma_bounce recently. Copilot says these diagnostics are necessary to be able to determine the root cause of the problem.

Copilot AI review requested due to automatic review settings July 29, 2026 16:41
@smalis-msft
Steven Malis (smalis-msft) requested a review from a team as a code owner July 29, 2026 16:41
@smalis-msft Steven Malis (smalis-msft) added the backport_1.8.2607 Change should be backported to the release/1.8.2607 branch label Jul 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds additional diagnostics around MSI/MSI-X interrupt delivery to help triage recent flakes (notably openvmm_openhcl_uefi_x64_windows_datacenter_core_2022_x64_uefi_force_dma_bounce) by making “unexpected / dropped interrupt” situations visible and improving MSI-X introspection.

Changes:

  • Emit a ratelimited warning when an MSI is signaled for an unregistered interrupt in the x86 software APIC device.
  • Improve MSI-X inspect output by showing MSI delivery state alongside the message table, and rendering address/data in hex in the delivery state.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
vmm_core/virt/src/x86/apic_software_device.rs Adds a ratelimited warning when an MSI is signaled for an interrupt index not present in the software interrupt table.
vm/devices/pci/pci_core/src/capabilities/msix.rs Enhances inspectability of MSI-X vectors by adding hex formatting for address/data in delivery state and exposing the msi delivery state in table entry inspection.

@smalis-msft
Steven Malis (smalis-msft) enabled auto-merge (squash) July 29, 2026 16:47
Copilot AI review requested due to automatic review settings July 29, 2026 18:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@smalis-msft
Steven Malis (smalis-msft) merged commit 322aed5 into microsoft:main Jul 29, 2026
98 of 101 checks passed
@smalis-msft
Steven Malis (smalis-msft) deleted the more-diags branch July 29, 2026 20:25
@github-actions

Copy link
Copy Markdown

@smalis-msft Steven Malis (smalis-msft) removed the backport_1.8.2607 Change should be backported to the release/1.8.2607 branch label Jul 31, 2026
Steven Malis (smalis-msft) added a commit that referenced this pull request Aug 4, 2026
Backport of #4079 to `release/1.8.2607`.

The cherry-pick of 322aed5 applied cleanly onto `release/1.8.2607`
with no conflicts and no manual edits.

Original PR: #4079

---
*This backport PR was created by an AI agent (GitHub Copilot) on behalf
of @smalis-msft.*
@benhillis

Copy link
Copy Markdown
Member

Backported to release/1.8.2607 in #4126

@benhillis Ben Hillis (benhillis) added the backported_1.8.2607 PR that has been backported to release/1.8.2607 label Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported_1.8.2607 PR that has been backported to release/1.8.2607

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants