diff options
author | Christoffer Dall <cdall@linaro.org> | 2017-05-16 12:41:18 +0200 |
---|---|---|
committer | Christoffer Dall <cdall@linaro.org> | 2017-06-08 17:58:40 +0200 |
commit | cb3f0ad881a6cee39c6a652b4aa4f12f341d98f0 (patch) | |
tree | 60f64d85991db922057cdb48eb25969abda00b27 /virt/kvm/arm/vgic/vgic-irqfd.c | |
parent | abcb851daa617706e90ee7d39d4d9a74ac05f4b1 (diff) | |
download | linux-cb3f0ad881a6cee39c6a652b4aa4f12f341d98f0.tar.gz linux-cb3f0ad881a6cee39c6a652b4aa4f12f341d98f0.tar.bz2 linux-cb3f0ad881a6cee39c6a652b4aa4f12f341d98f0.zip |
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>
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-irqfd.c')
-rw-r--r-- | virt/kvm/arm/vgic/vgic-irqfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/arm/vgic/vgic-irqfd.c b/virt/kvm/arm/vgic/vgic-irqfd.c index f138ed2e9c63..b7baf581611a 100644 --- a/virt/kvm/arm/vgic/vgic-irqfd.c +++ b/virt/kvm/arm/vgic/vgic-irqfd.c @@ -34,7 +34,7 @@ static int vgic_irqfd_set_irq(struct kvm_kernel_irq_routing_entry *e, if (!vgic_valid_spi(kvm, spi_id)) return -EINVAL; - return kvm_vgic_inject_irq(kvm, 0, spi_id, level); + return kvm_vgic_inject_irq(kvm, 0, spi_id, level, NULL); } /** |