linux/virt/kvm
Victor Kamensky df5bce90ac 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>
(cherry picked from commit 1c9f04717c)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
2014-10-02 17:18:58 +02:00
..
arm ARM: KVM: vgic mmio should hold data as LE bytes array in BE case 2014-10-02 17:18:58 +02:00
assigned-dev.c KVM: Move irq routing to generic code 2013-04-26 20:27:17 +02:00
async_pf.c KVM: async_pf: change async_pf_execute() to use get_user_pages(tsk => NULL) 2014-10-02 17:18:41 +02:00
async_pf.h KVM: Halt vcpu if page it tries to access is swapped out 2011-01-12 11:21:39 +02:00
coalesced_mmio.c KVM: return an error code in kvm_vm_ioctl_register_coalesced_mmio() 2014-10-02 17:18:30 +02:00
coalesced_mmio.h KVM: Make coalesced mmio use a device per zone 2011-09-25 19:17:57 +03:00
eventfd.c kvm/irqchip: Speed up KVM_SET_GSI_ROUTING 2014-10-02 17:18:46 +02:00
ioapic.c kvm: make local functions static 2014-10-02 17:18:28 +02:00
ioapic.h kvm: make local functions static 2014-10-02 17:18:28 +02:00
iodev.h KVM: remove in_range from io devices 2009-09-10 08:33:05 +03:00
iommu.c virt/kvm/iommu.c: Add leading zeros to device's BDF notation in debug messages 2014-10-02 17:18:09 +02:00
irq_comm.c kvm/irqchip: Speed up KVM_SET_GSI_ROUTING 2014-10-02 17:18:46 +02:00
irqchip.c kvm/irqchip: Speed up KVM_SET_GSI_ROUTING 2014-10-02 17:18:46 +02:00
Kconfig KVM: async_pf: Provide additional direct page notification 2014-10-02 17:18:30 +02:00
kvm_main.c KVM: add missing cleanup_srcu_struct 2014-10-02 17:18:48 +02:00
vfio.c kvm: Add VFIO device 2014-10-02 17:18:17 +02:00