]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 17 Feb 2020 11:37:05 +0000 (12:37 +0100)
commit33c0a4f1cc4ada775e5c634c9073b2b1812a749e
treed5bce750a279cddd20a65489806936c76210adeb
parentc2eba7840a8d6c0d1ed82d4cbcc334fd87476277
KVM: arm: Make inject_abt32() inject an external abort instead

BugLink: https://bugs.launchpad.net/bugs/1863589
commit 21aecdbd7f3ab02c9b82597dc733ee759fb8b274 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
virt/kvm/arm/aarch32.c