KVM: arm64: Introduce accessor for ctxt->sys_reg
authorMarc Zyngier <maz@kernel.org>
Wed, 26 Jun 2019 18:57:41 +0000 (19:57 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 7 Jul 2020 08:28:37 +0000 (09:28 +0100)
commit1b422dd7fc3c85556df656e3d8f1475ce99f93a0
treeb72072831c68f24f3f885028e7cda8db3808b191
parentefaa5b93afde088411b67a0dde34e67aedc6e72f
KVM: arm64: Introduce accessor for ctxt->sys_reg

In order to allow the disintegration of the per-vcpu sysreg array,
let's introduce a new helper (ctxt_sys_reg()) that returns the
in-memory copy of a system register, picked from a given context.

__vcpu_sys_reg() is rewritten to use this helper.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h