Skip to content

Inject interrupt #23

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

Closed
wants to merge 10 commits into from
Closed

Inject interrupt #23

wants to merge 10 commits into from

Conversation

hky1999
Copy link
Contributor

@hky1999 hky1999 commented Jan 9, 2025

No description provided.

@aarkegz aarkegz marked this pull request as ready for review May 12, 2025 07:09
@aarkegz aarkegz self-assigned this May 12, 2025
@aarkegz aarkegz requested review from Copilot and aarkegz May 12, 2025 07:09
Copy link

@Copilot Copilot AI left a comment

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 introduces an interrupt injection API for the virtual CPU and simplifies some interfaces by removing the redundant AccessWidth definitions.

  • Added an inject_interrupt method on AxVCpu and its underlying trait AxArchVCpu.
  • Removed AccessWidth from the public API in lib.rs and exit.rs.
  • Refactored the memory management interface in hal.rs to use an associated type for better abstraction.

Reviewed Changes

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

Show a summary per file
File Description
src/vcpu.rs Added the inject_interrupt method to AxVCpu.
src/lib.rs Removed the AccessWidth export and related TODO comment.
src/hal.rs Replaced multiple memory functions with an associated type MmHal.
src/exit.rs Updated AxVCpuExitReason to use SysRegAddr and removed AccessWidth definitions.
src/arch_vcpu.rs Added the inject_interrupt method declaration with extended documentation.

Copy link
Contributor

@aarkegz aarkegz left a comment

Choose a reason for hiding this comment

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

LGTM.

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