]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: KVM: avoid unnecessary guest register mangling on MMIO read
authorAndre Przywara <andre.przywara@arm.com>
Thu, 6 Nov 2014 12:11:45 +0000 (12:11 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 25 Nov 2014 13:57:28 +0000 (13:57 +0000)
commit205b67c3c0b1f1efd642c7641b94e0eb164f9014
treec4f34bbb05d281c623d7c0dbeba90ae4e8175ca3
parentef14414c6f0a4015fac3548fdafbb19258319712
arm/arm64: KVM: avoid unnecessary guest register mangling on MMIO read

Currently we mangle the endianness of the guest's register even on an
MMIO _read_, where it is completely useless, because we will not use
the value of that register.
Rework the io_mem_abort() function to clearly separate between reads
and writes and only do the endianness mangling on MMIO writes.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/mmio.c