diff options
author | Andrew Jones <drjones@redhat.com> | 2016-07-22 14:38:46 (GMT) |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-08-01 14:09:47 (GMT) |
commit | 89581f06b2bc225f0c9822fa52e714aa2e3810dd (patch) | |
tree | 8eacdc4ad18c8e9e71bf7df56b77342313217f0f /include | |
parent | 3f312db6b65baf393bee02f6dfdfaa94d786dd0f (diff) | |
download | linux-89581f06b2bc225f0c9822fa52e714aa2e3810dd.tar.xz |
arm64: KVM: Set cpsr before spsr on fault injection
We need to set cpsr before determining the spsr bank, as the bank
depends on the target exception level of the injection, not the
current mode of the vcpu. Normally this is one in the same (EL1),
but not when we manage to trap an EL0 fault. It still doesn't really
matter for the 64-bit EL0 case though, as vcpu_spsr() unconditionally
uses the EL1 bank for that. However the 32-bit EL0 case gets fun, as
that path will lead to the BUG() in vcpu_spsr32().
This patch fixes the assignment order and also modifies some white
space in order to better group pairs of lines that have strict order.
Cc: stable@vger.kernel.org # v4.5
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions