linux/arch/arm64
Marc Zyngier 5e5c8768a5 arm64: KVM: Allow unaligned accesses at EL2
commit 78fd6dcf11 upstream.

We currently have the SCTLR_EL2.A bit set, trapping unaligned accesses
at EL2, but we're not really prepared to deal with it. So far, this
has been unnoticed, until GCC 7 started emitting those (in particular
64bit writes on a 32bit boundary).

Since the rest of the kernel is pretty happy about that, let's follow
its example and set SCTLR_EL2.A to zero. Modern CPUs don't really
care.

Reported-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
[bwh: Backported to 3.16: s/ELx/EL2/]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2017-09-15 18:30:04 +01:00
..
boot arm64: dts: Add more serial port nodes in APM X-Gene device tree 2014-06-18 12:41:55 +01:00
configs arm64: defconfig update for LTP 2014-06-18 12:40:52 +01:00
crypto crypto: arm64/aes-blk - honour iv_out requirement in CBC and CTR modes 2017-03-16 02:27:04 +00:00
include arm64: KVM: Preserve RES1 bits in SCTLR_EL2 2017-09-15 18:30:04 +01:00
kernel arm64: avoid returning from bad_mode 2017-03-16 02:27:02 +00:00
kvm arm64: KVM: Allow unaligned accesses at EL2 2017-09-15 18:30:04 +01:00
lib arm64: __clear_user: handle exceptions on strb 2014-11-27 11:21:47 +00:00
mm arm64: debug: unmask PSTATE.D earlier 2016-11-20 01:16:54 +00:00
xen arm: xen: implement multicall hypercall support. 2014-04-24 13:09:46 +01:00
Kconfig arm64: errata: add module build workaround for erratum #843419 2015-10-06 11:52:29 +01:00
Kconfig.debug arm64: remove arch specific earlyprintk 2014-04-24 16:32:27 -07:00
Makefile arm64: errata: Add -mpc-relative-literal-loads to build flags 2016-02-17 10:22:40 +00:00