arm/arm64: KVM: MMIO support for BE guest
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 12 Feb 2013 12:40:22 +0000 (12:40 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 7 Nov 2013 19:09:04 +0000 (19:09 +0000)
commit6d89d2d9b5bac9dbe40ee106ceda9307b6265234
treedc2f8fad0be6afabbbfccca1311be40298449cd2
parentd241aac798eb042e605f78c31a4122e583b2cd13
arm/arm64: KVM: MMIO support for BE guest

Do the necessary byteswap when host and guest have different
views of the universe. Actually, the only case we need to take
care of is when the guest is BE. All the other cases are naturally
handled.

Also be careful about endianness when the data is being memcopy-ed
from/to the run buffer.

Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/kvm_emulate.h
arch/arm/kvm/mmio.c
arch/arm64/include/asm/kvm_emulate.h