KVM: arm64: pkvm: Use a single function to expose all id-regs
authorMarc Zyngier <maz@kernel.org>
Wed, 13 Oct 2021 12:03:37 +0000 (13:03 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 18 Oct 2021 15:57:08 +0000 (16:57 +0100)
commitce75916749b8cb5ec795f1157a5c426f6765a48c
tree9942f7d3b3fee4628d4b5da8968e0560df207aba
parent8a049862c38f0c78b0e01ab5d36db1bffc832675
KVM: arm64: pkvm: Use a single function to expose all id-regs

Rather than exposing a whole set of helper functions to retrieve
individual ID registers, use the existing decoding tree and expose
a single helper instead.

This allow a number of functions to be made static, and we now
have a single entry point to maintain.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://lore.kernel.org/r/20211013120346.2926621-3-maz@kernel.org
arch/arm64/kvm/hyp/include/nvhe/sys_regs.h
arch/arm64/kvm/hyp/nvhe/pkvm.c
arch/arm64/kvm/hyp/nvhe/sys_regs.c