-
Notifications
You must be signed in to change notification settings - Fork 13
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
Inject interrupt #23
Conversation
There was a problem hiding this 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
No description provided.