KVM: arm64: Prepare to handle deferred save/restore of ELR_EL1
authorChristoffer Dall <christoffer.dall@linaro.org>
Wed, 27 Dec 2017 19:51:04 +0000 (20:51 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 10:53:17 +0000 (10:53 +0000)
commit6d4bd909645359b0a7619598b9ca7a1353296207
tree82525a23399cb427f48365ae7112aa1b4cbd633a
parent00536ec476601a60d976eebf6aeb9633d4fb37d9
KVM: arm64: Prepare to handle deferred save/restore of ELR_EL1

ELR_EL1 is not used by a VHE host kernel and can be deferred, but we
need to rework the accesses to this register to access the latest value
depending on whether or not guest system registers are loaded on the CPU
or only reside in memory.

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