]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: nv: Load timer before the GIC
authorMarc Zyngier <maz@kernel.org>
Tue, 25 Feb 2025 17:29:18 +0000 (17:29 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 3 Mar 2025 22:54:57 +0000 (14:54 -0800)
commit16abeb60be621a7927d68ab77663e93f8c734f6e
treeac9fae5f65bdf99651fc049d577a71bdb7668c3c
parentb7a252e881f3322abb9ec899d13dbf7bae7d9bea
KVM: arm64: nv: Load timer before the GIC

In order for vgic_v3_load_nested to be able to observe which timer
interrupts have the HW bit set for the current context, the timers
must have been loaded in the new mode and the right timer mapped
to their corresponding HW IRQs.

At the moment, we load the GIC first, meaning that timer interrupts
injected to an L2 guest will never have the HW bit set (we see the
old configuration).

Swapping the two loads solves this particular problem.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250225172930.1850838-5-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/arm.c