]> git.baikalelectronics.ru Git - kernel.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)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Mar 2014 01:15:24 +0000 (01:15 +0000)
commitf6e03a0b3c0d5f66bda7d5fd91c8d727bf836f81
treed8b2dea94adc055c7a9fc351b94a72960ccc0cc9
parent9b28d79f9561e585069e6dd0a9f3d3ac7d3ad244
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