Skip to content

Reduce dependency on vgic_dist_device#66

Merged
kent-mcleod merged 2 commits intoseL4:masterfrom
Hensoldt-Cyber:patch-axel-6
Jul 9, 2022
Merged

Reduce dependency on vgic_dist_device#66
kent-mcleod merged 2 commits intoseL4:masterfrom
Hensoldt-Cyber:patch-axel-6

Conversation

@axel-h
Copy link
Copy Markdown
Member

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

  • Pass vgic to internal functions and not vgic_dist_device to reduce dependencies
  • Pass dedicated parameters to the internal fault handlers.

The way I understand the code is, that vgic is the main object we work with internally. The vgic_dist_device seem something that describes the mapping. I'm not sure where this is really needed nowadays, maybe in a non-CAmkES environment there are usecases. But this is completely internal, so my longterm-goal is droping this completely and store the information in vgic, see top commit of https://github.com/Hensoldt-Cyber/seL4_projects_libs/commits/patch-axel-6a. I just have to check how well this works with the GICv3 support that #58 brings in.

@kent-mcleod
Copy link
Copy Markdown
Member

My preference is that we hold back these clean-up PRs until after GICv3 emulation support is merged.

@axel-h
Copy link
Copy Markdown
Member Author

axel-h commented Jul 6, 2022

My preference is that we hold back these clean-up PRs until after GICv3 emulation support is merged.

If adding GICv3 support is urgent for you, then I will hold this back.

@axel-h axel-h force-pushed the patch-axel-6 branch 2 times, most recently from 23c5f1d to 4393a3d Compare July 9, 2022 23:22
Comment thread libsel4vm/src/arch/arm/vgic/vgic.c Outdated
Comment thread libsel4vm/src/arch/arm/vgic/vgic.c Outdated
@axel-h axel-h marked this pull request as draft July 9, 2022 23:25
Axel Heider added 2 commits July 10, 2022 01:26
Signed-off-by: Axel Heider <axel.heider@hensoldt.net>
Pass dedicated parameters to the internal fault handlers.

Signed-off-by: Axel Heider <axel.heider@hensoldt.net>
Copy link
Copy Markdown
Member

@kent-mcleod kent-mcleod left a comment

Choose a reason for hiding this comment

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

I'd like to merge this before #58

@kent-mcleod kent-mcleod marked this pull request as ready for review July 9, 2022 23:52
@kent-mcleod kent-mcleod merged commit 8ddb4a8 into seL4:master Jul 9, 2022
@axel-h axel-h deleted the patch-axel-6 branch July 9, 2022 23:58
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