android_kernel_samsung_msm8976/arch/arm64/kvm
Marc Zyngier 35b7d07ec4 arm64: KVM: allows discrimination of AArch32 sysreg access
The current handling of AArch32 trapping is slightly less than
perfect, as it is not possible (from a handler point of view)
to distinguish it from an AArch64 access, nor to tell a 32bit
from a 64bit access either.

Fix this by introducing two additional flags:
- is_aarch32: true if the access was made in AArch32 mode
- is_32bit: true if is_aarch32 == true and a MCR/MRC instruction
  was used to perform the access (as opposed to MCRR/MRRC).

This allows a handler to cover all the possible conditions in which
a system register gets trapped.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Git-commit: 2072d29c46b73e39b3c6c56c6027af77086f45fd
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2014-08-15 11:41:26 -07:00
..
emulate.c
guest.c arm64: KVM: Support X-Gene guest VCPU on APM X-Gene host 2014-04-17 17:04:57 -07:00
handle_exit.c arm64: KVM: Force undefined exception for Guest SMC intructions 2014-04-17 17:04:59 -07:00
hyp-init.S
hyp.S arm/arm64: KVM: detect CPU reset on CPU_PM_EXIT 2014-04-17 17:17:00 -07:00
inject_fault.c
Kconfig
Makefile
regmap.c
reset.c
sys_regs.c arm64: KVM: allows discrimination of AArch32 sysreg access 2014-08-15 11:41:26 -07:00
sys_regs.h arm64: KVM: allows discrimination of AArch32 sysreg access 2014-08-15 11:41:26 -07:00
sys_regs_generic_v8.c arm64: KVM: Support X-Gene guest VCPU on APM X-Gene host 2014-04-17 17:04:57 -07:00