KVM: arm64: Get rid of reg_from/to_user()
authorMarc Zyngier <maz@kernel.org>
Mon, 4 Jul 2022 16:55:43 +0000 (17:55 +0100)
committerMarc Zyngier <maz@kernel.org>
Sun, 17 Jul 2022 10:55:33 +0000 (11:55 +0100)
commit5a420ed9646a934e983358aeba1bf3cd993d1cc5
tree1a3e739fe9bf9ca20bea95d2855d6d4f1c7a5755
parent978ceeb3e40a59973ff1d1c3d23484f71f141819
KVM: arm64: Get rid of reg_from/to_user()

These helpers are only used by the invariant stuff now, and while
they pretend to support non-64bit registers, this only serves as
a way to scare the casual reviewer...

Replace these helpers with our good friends get/put_user(), and
don't look back.

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