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

executor: sys/linux: arm64: implement SYZOS_API_WFI_WFE #5619

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ramosian-glider
Copy link
Member

The new API call will be executing WFI and WFE instructions (Wait For Interrupt and Wait For Event, see
https://developer.arm.com/documentation/100453/0401/Power-management/Wait-For-Interrupt-and-Wait-For-Event).

These instructions are handled by KVM via kvm_handle_wfx().


Before sending a pull request, please review Contribution Guidelines:
https://github.com/google/syzkaller/blob/master/docs/contributing.md


The new API call will be executing WFI and WFE instructions (Wait For
Interrupt and Wait For Event, see
https://developer.arm.com/documentation/100453/0401/Power-management/Wait-For-Interrupt-and-Wait-For-Event).

These instructions are handled by KVM via kvm_handle_wfx().
@ramosian-glider
Copy link
Member Author

@marpom so far this doesn't support all variants of WFx, and I couldn't trigger any exits with it.

@dvyukov dvyukov marked this pull request as draft December 17, 2024 13:23
@ramosian-glider
Copy link
Member Author

As Dmitry pointed out, we shouldn't be adding special instructions here, as we can use SYZOS_API_CODE instead

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.

1 participant