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)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:19 +0000 (17:18 +0200)
commitdd8858820ec48b90c5ab5c6631f50a613deb55bc
tree4523f638169b5d8c42fc2eb3ad8ca22aa5596c7f
parent128a021aa83b73d07153f8fee5dd22e6933f62e2
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>
(cherry picked from commit 6d89d2d9b5bac9dbe40ee106ceda9307b6265234)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_emulate.h
arch/arm/kvm/mmio.c
arch/arm64/include/asm/kvm_emulate.h