linux/virt/kvm/arm
Victor Kamensky 1c9f04717c ARM: KVM: vgic mmio should hold data as LE bytes array in BE case
According to recent clarifications of mmio.data array meaning -
the mmio.data array should hold bytes as they would appear in
memory. Vgic is little endian device. And in case of BE image
kernel side that emulates vgic, holds data in BE form. So we
need to byteswap cpu<->le32 vgic registers when we read/write them
from mmio.data[].

Change has no effect in LE case because cpu already runs in le32.

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
2014-07-11 04:57:39 -07:00
..
arch_timer.c arm, kvm: fix double lock on cpu_add_remove_lock 2014-04-08 13:15:54 +02:00
vgic-v2.c arm64: KVM: split GICv2 world switch from hyp code 2014-07-11 04:57:36 -07:00
vgic-v3.c KVM: ARM: vgic: add the GICv3 backend 2014-07-11 04:57:36 -07:00
vgic.c ARM: KVM: vgic mmio should hold data as LE bytes array in BE case 2014-07-11 04:57:39 -07:00