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 19:59:51 +0200 |
commit | da345174ceca052469e4775e4ae263b5f27a9355 (patch) | |
tree | ff6d547063fac8b6e847edd70a987dfbb965d613 /arch/arm/include | |
parent | KVM: arm/arm64: Allow reporting non-ISV data aborts to userspace (diff) | |
download | linux-da345174ceca052469e4775e4ae263b5f27a9355.tar.xz 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 'arch/arm/include')
-rw-r--r-- | arch/arm/include/uapi/asm/kvm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/include/uapi/asm/kvm.h b/arch/arm/include/uapi/asm/kvm.h index 2769360f195c..03cd7c19a683 100644 --- a/arch/arm/include/uapi/asm/kvm.h +++ b/arch/arm/include/uapi/asm/kvm.h @@ -131,8 +131,9 @@ struct kvm_vcpu_events { struct { __u8 serror_pending; __u8 serror_has_esr; + __u8 ext_dabt_pending; /* Align it to 8 bytes */ - __u8 pad[6]; + __u8 pad[5]; __u64 serror_esr; } exception; __u32 reserved[12]; |