KVM: arm: Make inject_abt32() inject an external abort instead
authorJames Morse <james.morse@arm.com>
Tue, 21 Jan 2020 12:33:56 +0000 (12:33 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 23 Jan 2020 10:38:15 +0000 (10:38 +0000)
commit21aecdbd7f3ab02c9b82597dc733ee759fb8b274
tree73da785af71a2ed8d6c1d5b678c63e08855221f0
parent018f22f95e8a6c3e27188b7317ef2c70a34cb2cd
KVM: arm: Make inject_abt32() inject an external abort instead

KVM's inject_abt64() injects an external-abort into an aarch64 guest.
The KVM_CAP_ARM_INJECT_EXT_DABT is intended to do exactly this, but
for an aarch32 guest inject_abt32() injects an implementation-defined
exception, 'Lockdown fault'.

Change this to external abort. For non-LPAE we now get the documented:
| Unhandled fault: external abort on non-linefetch (0x008) at 0x9c800f00
and for LPAE:
| Unhandled fault: synchronous external abort (0x210) at 0x9c800f00

Fixes: 74a64a981662a ("KVM: arm/arm64: Unify 32bit fault injection")
Reported-by: Beata Michalska <beata.michalska@linaro.org>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200121123356.203000-3-james.morse@arm.com
virt/kvm/arm/aarch32.c