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)
commitfd451b90e78c4178bcfc5072f2b2b637500c109a
tree301f738e1831bcd7d2c49099e4177da621cf19a7
parent1d6a821277aaa0cdd666278aaff93298df313d41
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