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

libsel4vm: remove unused function is_active() #71

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

Conversation

axel-h
Copy link
Member

@axel-h axel-h commented Jul 14, 2022

This was removed in c3d5686 already, but the refactoring in 6c0c5d2 brought it back accidentally.

@kent-mcleod
Copy link
Member

This was removed in c3d5686 already, but the refactoring in 6c0c5d2 brought it back accidentally.

This isn't the case. That commit removed set_active, is_active was still in vgic.c and was moved. If you look at the move commit, it shouldn't add or remove any code other than license headers and some includes.

@axel-h
Copy link
Member Author

axel-h commented Jul 15, 2022

Good catch, my bad. But for is_active() I can't see any usage either, seems this could be dropped then also.

@kent-mcleod
Copy link
Member

Good catch, my bad. But for is_active() I can't see any usage either, seems this could be dropped then also.

Yea, if we thought it was worth removing set_active then it should apply the same way for is_active. We don't do proper active handling anyway. This is because the kernel doesn't provide the information. To implement the active registers, you would need to look inside the current list registers for the CPU interface to see which interrupts have been moved from pending to active or activepending by the guest, but I don't believe that the kernel provides a way for the vmm to read the values of the list registers, only sending a maintenance interrupt when the interrupt is deactivated. For completeness we should handle this, but in practice it's not needed unless we want to allow the guest to be able to suspend and resume itself.

Signed-off-by: Axel Heider <axel.heider@hensoldt.net>
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.

None yet

2 participants