diff options
author | Christoffer Dall <christoffer.dall@arm.com> | 2019-10-11 13:07:06 +0200 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2019-10-21 18:59:51 +0100 |
commit | da345174ceca052469e4775e4ae263b5f27a9355 (patch) | |
tree | ff6d547063fac8b6e847edd70a987dfbb965d613 /include/uapi/linux/kvm.h | |
parent | c726200dd106d4c58a281eea7159b8ba28a4ab34 (diff) | |
download | linux-da345174ceca052469e4775e4ae263b5f27a9355.tar.gz linux-da345174ceca052469e4775e4ae263b5f27a9355.tar.bz2 linux-da345174ceca052469e4775e4ae263b5f27a9355.zip |
KVM: arm/arm64: Allow user injection of external data aborts
In some scenarios, such as buggy guest or incorrect configuration of the
VMM and firmware description data, userspace will detect a memory access
to a portion of the IPA, which is not mapped to any MMIO region.
For this purpose, the appropriate action is to inject an external abort
to the guest. The kernel already has functionality to inject an
external abort, but we need to wire up a signal from user space that
lets user space tell the kernel to do this.
It turns out, we already have the set event functionality which we can
perfectly reuse for this.
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'include/uapi/linux/kvm.h')
-rw-r--r-- | include/uapi/linux/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 7336ee8d98d7..65db5a4257ec 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -1007,6 +1007,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_ARM_IRQ_LINE_LAYOUT_2 174 #define KVM_CAP_HYPERV_DIRECT_TLBFLUSH 175 #define KVM_CAP_ARM_NISV_TO_USER 176 +#define KVM_CAP_ARM_INJECT_EXT_DABT 177 #ifdef KVM_CAP_IRQ_ROUTING |