Skip to content

libsel4vm: remove unused function is_active()#71

Open
axel-h wants to merge 1 commit intoseL4:masterfrom
Hensoldt-Cyber:patch-axel-19
Open

libsel4vm: remove unused function is_active()#71
axel-h wants to merge 1 commit intoseL4:masterfrom
Hensoldt-Cyber:patch-axel-19

Conversation

@axel-h
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants