diff options
| author | Marc Zyngier <maz@kernel.org> | 2026-04-01 11:36:07 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-04-01 15:42:26 +0100 |
| commit | fbcbf259d97d340376a176de20bdc04687356949 (patch) | |
| tree | a5fc0acec2632c2a16fae23e7cf52b33819218a1 /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | 8fe30434a81d36715ab83fdb4a5e6c967d2e3ecf (diff) | |
KVM: arm64: Remove evaluation of timer state in kvm_cpu_has_pending_timer()
The vgic-v5 code added some evaluations of the timers in a helper funtion
(kvm_cpu_has_pending_timer()) that is called to determine whether
the vcpu can wake-up.
But looking at the timer there is wrong:
- we want to see timers that are signalling an interrupt to the
vcpu, and not just that have a pending interrupt
- we already have kvm_arch_vcpu_runnable() that evaluates the
state of interrupts
- kvm_cpu_has_pending_timer() really is about WFIT, as the timeout
does not generate an interrupt, and is therefore distinct from
the point above
As a consequence, revert these changes and teach vgic_v5_has_pending_ppi()
about checking for pending HW interrupts instead.
Fixes: 9491c63b6cd7b ("KVM: arm64: gic-v5: Enlighten arch timer for GICv5")
Link: https://sashiko.dev/#/patchset/20260319154937.3619520-1-sascha.bischoff%40arm.com
Link: https://patch.msgid.link/20260401103611.357092-13-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
