History

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.

Christoffer Dall committed 7 years ago

Commit da345171 parent c7262008 files · +49 −5Browse files

Showing the changes to include/uapi/linux (1 of 8 files). Show all

Unified · Split

include/uapi/linux/kvm.h+1−0
@@ -1007,6 +1007,7 @@ struct kvm_ppc_resize_hpt { · 1006 unmodified lines
10071007 #define KVM_CAP_ARM_IRQ_LINE_LAYOUT_2 174
10081008 #define KVM_CAP_HYPERV_DIRECT_TLBFLUSH 175
10091009 #define KVM_CAP_ARM_NISV_TO_USER 176
1010+#define KVM_CAP_ARM_INJECT_EXT_DABT 177
10101011
10111012 #ifdef KVM_CAP_IRQ_ROUTING
10121013