]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4835a69478a2c5f2b757bbc3b77c94a65b315647
tree82525a23399cb427f48365ae7112aa1b4cbd633a
parentd615a4e288351792ebb173b1cea2363492d0cc43
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