]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3aa48a345efc4800f89e539ef9423d20868b401
tree9942f7d3b3fee4628d4b5da8968e0560df207aba
parentd6aa7d9c4fa02a500f43535995db94cbe1656ddf
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