arm64: KVM: move HCR_EL2.{IMO,FMO} manipulation into the vgic switch code
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 9 Aug 2013 17:19:11 +0000 (18:19 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:55 +0000 (17:18 +0200)
commitc292a45791af6d60cc7c644809f84810a38e1771
tree6d013fe836d4b6432a7be96d6f9e6ca7562e381d
parentfd17281069b65b1672718613d8c89cc9a409bfcd
arm64: KVM: move HCR_EL2.{IMO,FMO} manipulation into the vgic switch code

GICv3 requires the IMO and FMO bits to be tightly coupled with some
of the interrupt controller's register switch.

In order to have similar code paths, move the manipulation of these
bits to the GICv2 switch code.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit ac3c3747e2db2f326ffc601651de544cdd33a8e9)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/include/asm/kvm_arm.h
arch/arm64/kvm/hyp.S