]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Disallow userspace control of in-kernel IRQ lines
authorChristoffer Dall <cdall@linaro.org>
Tue, 16 May 2017 10:41:18 +0000 (12:41 +0200)
committerChristoffer Dall <cdall@linaro.org>
Thu, 8 Jun 2017 15:58:40 +0000 (17:58 +0200)
commit3af067d25cf5bed920773215da47c641aec87dde
tree60f64d85991db922057cdb48eb25969abda00b27
parent7845112d307551d06a5315b9cbb98955afc082a5
KVM: arm/arm64: Disallow userspace control of in-kernel IRQ lines

When injecting an IRQ to the VGIC, you now have to present an owner
token for that IRQ line to show that you are the owner of that line.

IRQ lines driven from userspace or via an irqfd do not have an owner and
will simply pass a NULL pointer.

Also get rid of the unused kvm_vgic_inject_mapped_irq prototype.

Signed-off-by: Christoffer Dall <cdall@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
include/kvm/arm_vgic.h
virt/kvm/arm/arch_timer.c
virt/kvm/arm/arm.c
virt/kvm/arm/pmu.c
virt/kvm/arm/vgic/vgic-irqfd.c
virt/kvm/arm/vgic/vgic.c