[PATCH] KVM: arm64: Eagerly init vgic dist/redist on vgic creation
Marc Zyngier
maz at kernel.org
Thu Mar 5 07:19:49 PST 2026
On Sat, 28 Feb 2026 16:45:59 +0000, Marc Zyngier wrote:
> If vgic_allocate_private_irqs_locked() fails for any odd reason,
> we exit kvm_vgic_create() early, leaving dist->rd_regions uninitialised.
>
> kvm_vgic_dist_destroy() then comes along and walks into the weeds
> trying to free the RDs. Got to love this stuff.
>
> Solve it by moving all the static initialisation early, and make
> sure that if we fail halfway, we're in a reasonable shape to
> perform the rest of the teardown. While at it, reset the vgic model
> on failure, just in case...
>
> [...]
Applied to fixes, thanks!
[1/1] KVM: arm64: Eagerly init vgic dist/redist on vgic creation
commit: ac6769c8f948dff33265c50e524aebf9aa6f1be0
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list