]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc1ed9bbec7d3828488c667f3851de5846eed4969
tree5791822410f86618bc380b1b09528198998686a7
parent70334132d4141cd3242911580b0c8c0ede729071
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