]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - virt/kvm/assigned-dev.c
Merge branch 'for-linus' of git://gitorious.org/linux-omap-dss2/linux
[karo-tx-linux.git] / virt / kvm / assigned-dev.c
index 4d10b1e047f4e9b3c3c22df98b25be6d23247e12..7c98928b09d92a9b7930bb84c9f291bfe569870d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Kernel-based Virtual Machine - device assignment support
  *
- * Copyright (C) 2006-9 Red Hat, Inc
+ * Copyright (C) 2010 Red Hat, Inc. and/or its affiliates.
  *
  * This work is licensed under the terms of the GNU GPL, version 2.  See
  * the COPYING file in the top-level directory.
@@ -58,12 +58,10 @@ static int find_index_from_host_irq(struct kvm_assigned_dev_kernel
 static void kvm_assigned_dev_interrupt_work_handler(struct work_struct *work)
 {
        struct kvm_assigned_dev_kernel *assigned_dev;
-       struct kvm *kvm;
        int i;
 
        assigned_dev = container_of(work, struct kvm_assigned_dev_kernel,
                                    interrupt_work);
-       kvm = assigned_dev->kvm;
 
        spin_lock_irq(&assigned_dev->assigned_dev_lock);
        if (assigned_dev->irq_requested_type & KVM_DEV_IRQ_HOST_MSIX) {
@@ -448,9 +446,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;