]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita20ca48207bca210c1dce23a49b72df6f1addf33
tree8cbe74d778decea2f3a643afa8f3ffae76e5112f
parent63433aa6d0e739cf2afad75742003c018cf3cb74
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