diff mbox

kvm: remove CAP_SYS_RAWIO requirement from kvm_vm_ioctl_assign_irq

Message ID 20100512134619.30602.63792.stgit@virtlab9.virt.bos.redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Alex Williamson May 12, 2010, 1:46 p.m. UTC
None
diff mbox

Patch

diff --git a/virt/kvm/assigned-dev.c b/virt/kvm/assigned-dev.c
index 4d10b1e..64672e2 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,
 	struct kvm_assigned_dev_kernel *match;
 	unsigned long host_irq_type, guest_irq_type;
 
-	if (!capable(CAP_SYS_RAWIO))
-		return -EPERM;
-
 	if (!irqchip_in_kernel(kvm))
 		return r;