]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: KVM: add world-switch for AMAIR{0,1}
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 22 Jan 2014 10:20:09 +0000 (10:20 +0000)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Apr 2015 09:15:04 +0000 (11:15 +0200)
commit676d3a639d2f4a8ae157b69a153ed9fe48ac1aa9
tree6697b67eca06b3577442289758a48643e22cd597
parent0879aae91506bf55f8f5f4225e7fba260517dfad
ARM: KVM: add world-switch for AMAIR{0,1}

commit af20814ee927ed888288d98917a766b4179c4fe0 upstream.

HCR.TVM traps (among other things) accesses to AMAIR0 and AMAIR1.
In order to minimise the amount of surprise a guest could generate by
trying to access these registers with caches off, add them to the
list of registers we switch/handle.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/include/asm/kvm_asm.h
arch/arm/kvm/coproc.c
arch/arm/kvm/interrupts_head.S