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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:53:01 +0000 (09:53 +0100)
commit73c4af9627c0914b81832e162deb34f4894760cb
treeb4d58bf7e525f7f2a0e8f88d97436adaadeb456f
parenta52c2829cd60492fc75bafc323145cab1af915f5
KVM: arm/arm64: Fix broken GICH_ELRSR big endian conversion

commit fc396e066318c0a02208c1d3f0b62950a7714999 upstream.

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.

Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virt/kvm/arm/hyp/vgic-v2-sr.c