KVM: arm64: Use visibility hook to treat ID regs as RAZ
authorOliver Upton <oliver.upton@linux.dev>
Tue, 13 Sep 2022 09:44:34 +0000 (09:44 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 14 Sep 2022 10:36:16 +0000 (11:36 +0100)
commit34b4d20399e6fad2e3379b11e68dff1d1549274e
tree8cbe74d778decea2f3a643afa8f3ffae76e5112f
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5
KVM: arm64: Use visibility hook to treat ID regs as RAZ

The generic id reg accessors already handle RAZ registers by way of the
visibility hook. Add a visibility hook that returns REG_RAZ
unconditionally and throw out the RAZ specific accessors.

Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220913094441.3957645-2-oliver.upton@linux.dev
arch/arm64/kvm/sys_regs.c