arm: KVM: Allow unaligned accesses at HYP
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 6 Jun 2017 18:08:35 +0000 (19:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 11:16:21 +0000 (13:16 +0200)
commit7b69d79732ebf7499a6e7b4488a7b9d2a2c859ce
tree0eb4bcf432343ef71fbabcb7ea1275db5a872e2e
parentc7740cbcc2c485eb26e771e40bae33fb96ed34af
arm: KVM: Allow unaligned accesses at HYP

commit 33b5c38852b29736f3b472dd095c9a18ec22746f upstream.

We currently have the HSCTLR.A bit set, trapping unaligned accesses
at HYP, but we're not really prepared to deal with it.

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

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kvm/init.S