]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: vgic-v3: Restore ICH_APR0Rn_EL2 before ICH_APR1Rn_EL2
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 17 Feb 2016 10:25:05 +0000 (10:25 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 24 Feb 2016 17:25:58 +0000 (17:25 +0000)
commitdd8a0e41b06741879a22597bf7377e4d57bd75cd
tree301f738e1831bcd7d2c49099e4177da621cf19a7
parentbecb495f38ee4f229ddd1ab163f064106e95fa53
arm64: KVM: vgic-v3: Restore ICH_APR0Rn_EL2 before ICH_APR1Rn_EL2

The GICv3 architecture spec says:

Writing to the active priority registers in any order other than
the following order will result in UNPREDICTABLE behavior:
- ICH_AP0R<n>_EL2.
- ICH_AP1R<n>_EL2.

So let's not pointlessly go against the rule...

Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp/vgic-v3-sr.c