]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Simplify userspace notification of interrupt state
authorMarc Zyngier <maz@kernel.org>
Wed, 20 May 2026 10:01:56 +0000 (11:01 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 21 May 2026 07:08:48 +0000 (08:08 +0100)
commit0d27b4b351493cb2fe1f87cd152856704d4e141d
treec93892b7c857c257e15542934f2748dac68b8917
parent68a612d4dbc7f2b9dac731c79676a21fce573d29
KVM: arm64: Simplify userspace notification of interrupt state

The userspace notification of interrupts is has a few problems:

- it is utterly pointless

- it is annoyingly split between detecting the need for notification
  and the population of the interrupts in the run structure

We can't do anything about the former (yet), but the latter can be
addressed. If we detect that we must notify userspace, we know that
we are going to exit, as we populate the exit status. Which means
we can also populate the interrupt state at this stage and be done
with it.

This simplifies the structure of the code.

Reviewed-by: Oliver Upton <oupton@kernel.org>
Link: https://patch.msgid.link/20260520100200.543845-3-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/arch_timer.c
arch/arm64/kvm/arm.c
arch/arm64/kvm/pmu-emul.c
include/kvm/arm_arch_timer.h
include/kvm/arm_pmu.h