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

Aarch64 GIC: adding locking for concurrently accessed resources #2073

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

francescolavra
Copy link
Member

Some resources contained in the static gic structure (namely, the ITS command queue, the device list, and the ITS interrupt map) can be accessed concurrently by different vCPUS, for example when gic_percpu_init() is called by secondary vCPUs when they are brought up.
Add a spinlock to protect these resources from concurrent access; this fixes sporadic boot failures on Aarch64 instances with more than 2 vCPUs.

Some resources contained in the static gic structure (namely, the
ITS command queue, the device list, and the ITS interrupt map) can
be accessed concurrently by different vCPUS, for example when
gic_percpu_init() is called by secondary vCPUs when they are
brought up.
Add a spinlock to protect these resources from concurrent access;
this fixes sporadic boot failures on Aarch64 instances with more
than vCPUs.
@francescolavra francescolavra merged commit 1035180 into master Nov 1, 2024
7 checks passed
@francescolavra francescolavra deleted the fix/gic-lock branch November 1, 2024 12:27
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