KVM: arm/arm64: Add kvm_vcpu_load_sysregs and kvm_vcpu_put_sysregs
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 10 Oct 2017 08:21:18 +0000 (10:21 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 10:53:11 +0000 (10:53 +0000)
commitbc192ceec37108bf6c04a5c5795fcea5f940b0de
treeaa5c6b84d979e889dee128e614070564971902f2
parent3df59d8dd3c2526b33d51af9e6f66e61262de71b
KVM: arm/arm64: Add kvm_vcpu_load_sysregs and kvm_vcpu_put_sysregs

As we are about to move a bunch of save/restore logic for VHE kernels to
the load and put functions, we need some infrastructure to do this.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/hyp/sysreg-sr.c
virt/kvm/arm/arm.c