PCI-passthrough: interrupt work structure per device

2008-05-29 Thread Ben-Ami Yassour
Amit, Attached is a patch for the pci-passthrough tree. This patch changes the workq structure of the interrupt handling to be per device. This also requires that all locks are locked with irqsave, since the interrupt handler is also using the pt device list. I tested it with an e1000 NIC and

Re: PCI-passthrough: interrupt work structure per device

2008-05-29 Thread Mark McLoughlin
On Thu, 2008-05-29 at 20:17 +0300, Ben-Ami Yassour wrote: Attached is a patch for the pci-passthrough tree. This patch changes the workq structure of the interrupt handling to be per device. Heh, I just happened to notice this myself yesterday. ... From

Re: PCI-passthrough: interrupt work structure per device

2008-05-29 Thread Amit Shah
On Thursday 29 May 2008 23:39:37 Mark McLoughlin wrote: @@ -184,16 +190,27 @@ out: static irqreturn_t kvm_pci_pt_dev_intr(int irq, void *dev_id) { struct kvm *kvm = (struct kvm *) dev_id; + struct kvm_pci_pt_dev_list *pci_pt_dev; if (!test_bit(irq, pt_irq_handled))