KVM: arm64: Move VHE direct sysreg accessors into kvm_host.h
authorMarc Zyngier <maz@kernel.org>
Wed, 14 Oct 2020 18:36:11 +0000 (19:36 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 10 Nov 2020 08:34:25 +0000 (08:34 +0000)
commit21c810017cef75435be8b8f1da2110c6d1fd887b
tree2e8ace0146f8e9b1bb705405633cf5d4be841787
parentdefe21f49bc98b095300752aa1e19bb608f3e97d
KVM: arm64: Move VHE direct sysreg accessors into kvm_host.h

As we are about to need to access system registers from the HYP
code based on their internal encoding, move the direct sysreg
accessors to a common include file, with a VHE-specific guard.

No functionnal change.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/sys_regs.c