KVM: arm64: vgic-v3: Make the userspace accessors use sysreg API
authorMarc Zyngier <maz@kernel.org>
Mon, 4 Jul 2022 08:57:38 +0000 (09:57 +0100)
committerMarc Zyngier <maz@kernel.org>
Sun, 17 Jul 2022 10:55:33 +0000 (11:55 +0100)
commitcbcf14dd23bcf228eb6061991acf3721506b97ae
tree5791822410f86618bc380b1b09528198998686a7
parentdb25081e147c3cc496b8cd8c9d67f992546df6d5
KVM: arm64: vgic-v3: Make the userspace accessors use sysreg API

The vgic-v3 sysreg accessors have been ignored as the rest of the
sysreg internal API was evolving, and are stuck with the .access
method (which is normally reserved to the guest's own access)
for the userspace accesses (which should use the .set/.get_user()
methods).

Catch up with the program and repaint all the accessors so that
they fit into the normal userspace model, and plug the result into
the helpers that have been introduced earlier.

Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/vgic-sys-reg-v3.c