]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Handle data and instruction external aborts the same way
authorWill Deacon <will@kernel.org>
Wed, 29 Jul 2020 10:28:19 +0000 (11:28 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 30 Jul 2020 15:02:37 +0000 (16:02 +0100)
commitc9960ad1398c9d6c8169e8b4b12923cdaa3be707
tree9450a719ec5d5dfa5c71d50187dc1a8786d4d08e
parentf0ed905e1f06bb0a2c8ddf347f0f63dc9a8f661a
KVM: arm64: Handle data and instruction external aborts the same way

If the guest generates a synchronous external abort which is not handled
by the host, we inject it back into the guest as a virtual SError, but
only if the original fault was reported on the data side. Instruction
faults are reported as "Unsupported FSC", causing the vCPU run loop to
bail with -EFAULT.

Although synchronous external aborts from a guest are pretty unusual,
treat them the same regardless of whether they are taken as data or
instruction aborts by EL2.

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20200729102821.23392-3-will@kernel.org
arch/arm64/kvm/mmu.c