KVM: arm/arm64: Fix broken GICH_ELRSR big endian conversion
authorChristoffer Dall <christoffer.dall@linaro.org>
Sun, 3 Dec 2017 22:54:41 +0000 (23:54 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 4 Dec 2017 13:25:33 +0000 (14:25 +0100)
commitfc396e066318c0a02208c1d3f0b62950a7714999
treecd64b6978477f80493dcd64cd2ddadbc584b944b
parent6b2ad81bcfedaf36ceb8e6e71a58ad4ebd716313
KVM: arm/arm64: Fix broken GICH_ELRSR big endian conversion

We are incorrectly rearranging 32-bit words inside a 64-bit typed value
for big endian systems, which would result in never marking a virtual
interrupt as inactive on big endian systems (assuming 32 or fewer LRs on
the hardware).  Fix this by not doing any word order manipulation for
the typed values.

Cc: <stable@vger.kernel.org>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/hyp/vgic-v2-sr.c