KVM: arm64: Replace vgic_v3_uaccess_read_pending with vgic_uaccess_read_pending
authorMarc Zyngier <maz@kernel.org>
Tue, 7 Jun 2022 13:14:26 +0000 (14:14 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 8 Jun 2022 09:16:15 +0000 (10:16 +0100)
commit98432ccdec9f178ba041e1e5f9f32dbd71576504
treed768430fccbe0180718c613b4892d4377ea19f34
parent2cdea19a34c2340b3aa69508804efe4e3750fcec
KVM: arm64: Replace vgic_v3_uaccess_read_pending with vgic_uaccess_read_pending

Now that GICv2 has a proper userspace accessor for the pending state,
switch GICv3 over to it, dropping the local version, moving over the
specific behaviours that CGIv3 requires (such as the distinction
between pending latch and line level which were never enforced
with GICv2).

We also gain extra locking that isn't really necessary for userspace,
but that's a small price to pay for getting rid of superfluous code.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20220607131427.1164881-3-maz@kernel.org
arch/arm64/kvm/vgic/vgic-mmio-v3.c
arch/arm64/kvm/vgic/vgic-mmio.c