aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/assigned-dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'virt/kvm/assigned-dev.c')
-rw-r--r--virt/kvm/assigned-dev.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/virt/kvm/assigned-dev.c b/virt/kvm/assigned-dev.c
index 4d10b1e047f4..64672e2d43c3 100644
--- a/virt/kvm/assigned-dev.c
+++ b/virt/kvm/assigned-dev.c
@@ -448,9 +448,6 @@ static int kvm_vm_ioctl_assign_irq(struct kvm *kvm,
448 struct kvm_assigned_dev_kernel *match; 448 struct kvm_assigned_dev_kernel *match;
449 unsigned long host_irq_type, guest_irq_type; 449 unsigned long host_irq_type, guest_irq_type;
450 450
451 if (!capable(CAP_SYS_RAWIO))
452 return -EPERM;
453
454 if (!irqchip_in_kernel(kvm)) 451 if (!irqchip_in_kernel(kvm))
455 return r; 452 return r;
456 453