Skip to content

drivers: hv: clear halt when injecting SNP interrupts#150

Open
Brian-Perkins wants to merge 1 commit into
microsoft:product/hcl-main/6.18from
Brian-Perkins:snp_clear_hlt_on_interrupt
Open

drivers: hv: clear halt when injecting SNP interrupts#150
Brian-Perkins wants to merge 1 commit into
microsoft:product/hcl-main/6.18from
Brian-Perkins:snp_clear_hlt_on_interrupt

Conversation

@Brian-Perkins

Copy link
Copy Markdown
Contributor

When processing interrupts in the SNP path, be sure to clear the HALT flag when waking VTL0.

Signed-off-by: Brian Perkins bperkins@microsoft.com

Copilot AI review requested due to automatic review settings June 26, 2026 01:11

Copilot AI left a comment

Copy link
Copy Markdown

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 fixes SEV-SNP interrupt wakeup behavior by ensuring a vCPU previously marked as halted is un-halted when pending interrupts are observed in the Secure AVIC (vAPIC) IRR, allowing VTL0 to resume execution instead of remaining in native_safe_halt().

Changes:

  • Add an SNP-specific helper to clear HALT_* offload flags (and MSHV_VTL_RUN_FLAG_HALTED when applicable) when IRR indicates a pending interrupt.
  • Invoke that helper after pulling proxy_irr into the SNP Secure AVIC page in the interrupt-injection fast path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants