]> git.baikalelectronics.ru Git - kernel.git/commit
ARM64: KVM: fix big endian issue in access_vm_reg for 32bit guest
authorVictor Kamensky <victor.kamensky@linaro.org>
Wed, 2 Jul 2014 16:19:30 +0000 (17:19 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 11 Jul 2014 11:57:43 +0000 (04:57 -0700)
commit1f2152bb52f32efdd342db57fe43c668676e0390
tree151ffee47494baad44c4f6838219d4852579bf2d
parent0b9a7000b450f5b99b2c7ce5b77e0e58b891bc6e
ARM64: KVM: fix big endian issue in access_vm_reg for 32bit guest

Fix issue with 32bit guests running on top of BE KVM host.
Indexes of high and low words of 64bit cp15 register are
swapped in case of big endian code, since 64bit cp15 state is
restored or saved with double word write or read instruction.

Define helper macro to access low words of 64bit cp15 register.

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/sys_regs.c