diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2015-07-24 12:30:43 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2015-08-12 12:28:26 +0200 |
commit | 773299a570725d1f253d6046cd6475209b0dcd55 (patch) | |
tree | a9d54841a4a92de76dad049bea4db351e7d35f5a /kernel | |
parent | KVM: arm/arm64: vgic: Add vgic_{get,set}_phys_irq_active (diff) | |
download | linux-773299a570725d1f253d6046cd6475209b0dcd55.tar.xz linux-773299a570725d1f253d6046cd6475209b0dcd55.zip |
KVM: arm/arm64: vgic: Prevent userspace injection of a mapped interrupt
Virtual interrupts mapped to a HW interrupt should only be triggered
from inside the kernel. Otherwise, you could end up confusing the
kernel (and the GIC's) state machine.
Rearrange the injection path so that kvm_vgic_inject_irq is
used for non-mapped interrupts, and kvm_vgic_inject_mapped_irq is
used for mapped interrupts. The latter should only be called from
inside the kernel (timer, irqfd).
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions