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)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:36 +0000 (17:18 +0200)
commit6076945ed741ff33724410d0bb9dfa535b475e79
tree253493a6d2ebd40c33bdf45eda12124f285ec479
parentff860e2b7761196f6379888acd6668ecddb703df
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>
(cherry picked from commit af20814ee927ed888288d98917a766b4179c4fe0)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_asm.h
arch/arm/kvm/coproc.c
arch/arm/kvm/interrupts_head.S