KVM: arm64: vgic: Use common accessor for writes to ISPENDR
authorOliver Upton <oliver.upton@linux.dev>
Tue, 19 Dec 2023 06:58:53 +0000 (06:58 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 22 Dec 2023 09:33:54 +0000 (09:33 +0000)
commit13886f34444596e6eca124677cd8362a941b585b
treeac2e4cc4d470517047227c35a003ef2ea5f9a30a
parent7b95382f965133ef61ce44aaabc518c16eb46909
KVM: arm64: vgic: Use common accessor for writes to ISPENDR

Perhaps unsurprisingly, there is a considerable amount of duplicate
code between the MMIO and user accessors for ISPENDR. At the same
time there are some important differences between user and guest
MMIO, like how SGIs can only be made pending from userspace.

Fold user and MMIO accessors into a common helper, maintaining the
distinction between the two.

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