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)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Mar 2014 01:15:24 +0000 (01:15 +0000)
commitaf20814ee927ed888288d98917a766b4179c4fe0
treed8b2dea94adc055c7a9fc351b94a72960ccc0cc9
parentac30a11e8e92a03dbe236b285c5cbae0bf563141
ARM: KVM: add world-switch for AMAIR{0,1}

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>
arch/arm/include/asm/kvm_asm.h
arch/arm/kvm/coproc.c
arch/arm/kvm/interrupts_head.S