Displaying 20 results from an estimated 28 matches for "g830204".
Did you mean:
30204
2009 May 07
1
[PATCH 2/3] virtio_pci: split up vp_interrupt
...hanged(irq, opaque);
- if (drv && drv->config_changed)
- drv->config_changed(&vp_dev->vdev);
- }
+ return vp_vring_interrupt(irq, opaque);
+}
spin_lock_irqsave(&vp_dev->lock, flags);
list_for_each_entry(info, &vp_dev->virtqueues, node) {
--
1.6.3.rc3.1.g830204
2009 May 07
1
[PATCH 2/3] virtio_pci: split up vp_interrupt
...hanged(irq, opaque);
- if (drv && drv->config_changed)
- drv->config_changed(&vp_dev->vdev);
- }
+ return vp_vring_interrupt(irq, opaque);
+}
spin_lock_irqsave(&vp_dev->lock, flags);
list_for_each_entry(info, &vp_dev->virtqueues, node) {
--
1.6.3.rc3.1.g830204
2009 May 13
0
[PATCHv5 2/3] virtio_pci: split up vp_interrupt
...amp;vp_dev->virtqueues, node) {
- if (vring_interrupt(irq, info->vq) == IRQ_HANDLED)
- ret = IRQ_HANDLED;
- }
- spin_unlock_irqrestore(&vp_dev->lock, flags);
-
- return ret;
+ return vp_vring_interrupt(irq, opaque);
}
/* the config->find_vq() implementation */
--
1.6.3.rc3.1.g830204
2009 May 14
0
[PATCHv6 3/4] virtio_pci: split up vp_interrupt
...amp;vp_dev->virtqueues, node) {
- if (vring_interrupt(irq, info->vq) == IRQ_HANDLED)
- ret = IRQ_HANDLED;
- }
- spin_unlock_irqrestore(&vp_dev->lock, flags);
-
- return ret;
+ return vp_vring_interrupt(irq, opaque);
}
/* the config->find_vq() implementation */
--
1.6.3.rc3.1.g830204
2009 May 13
0
[PATCHv5 2/3] virtio_pci: split up vp_interrupt
...amp;vp_dev->virtqueues, node) {
- if (vring_interrupt(irq, info->vq) == IRQ_HANDLED)
- ret = IRQ_HANDLED;
- }
- spin_unlock_irqrestore(&vp_dev->lock, flags);
-
- return ret;
+ return vp_vring_interrupt(irq, opaque);
}
/* the config->find_vq() implementation */
--
1.6.3.rc3.1.g830204
2009 May 14
0
[PATCHv6 3/4] virtio_pci: split up vp_interrupt
...amp;vp_dev->virtqueues, node) {
- if (vring_interrupt(irq, info->vq) == IRQ_HANDLED)
- ret = IRQ_HANDLED;
- }
- spin_unlock_irqrestore(&vp_dev->lock, flags);
-
- return ret;
+ return vp_vring_interrupt(irq, opaque);
}
/* the config->find_vq() implementation */
--
1.6.3.rc3.1.g830204
2009 May 07
2
[PATCH] msi-x: let drivers retry when not enough vectors
...@ -704,7 +704,7 @@ int pci_enable_msix(struct pci_dev* dev, struct msix_entry *entries, int nvec)
nr_entries = pci_msix_table_size(dev);
if (nvec > nr_entries)
- return -EINVAL;
+ return nr_entries;
/* Check for any invalid entries */
for (i = 0; i < nvec; i++) {
--
1.6.3.rc3.1.g830204
2009 May 07
2
[PATCH] msi-x: let drivers retry when not enough vectors
...@ -704,7 +704,7 @@ int pci_enable_msix(struct pci_dev* dev, struct msix_entry *entries, int nvec)
nr_entries = pci_msix_table_size(dev);
if (nvec > nr_entries)
- return -EINVAL;
+ return nr_entries;
/* Check for any invalid entries */
for (i = 0; i < nvec; i++) {
--
1.6.3.rc3.1.g830204
2009 May 07
1
[PATCH 3/3] virtio_pci: optional MSI-X support
...device */
err = register_virtio_device(&vp_dev->vdev);
if (err)
- goto out_req_irq;
+ goto out_set_drvdata;
return 0;
-out_req_irq:
- free_irq(pci_dev->irq, vp_dev);
out_set_drvdata:
pci_set_drvdata(pci_dev, NULL);
pci_iounmap(pci_dev, vp_dev->ioaddr);
--
1.6.3.rc3.1.g830204
2009 May 07
1
[PATCH 3/3] virtio_pci: optional MSI-X support
...device */
err = register_virtio_device(&vp_dev->vdev);
if (err)
- goto out_req_irq;
+ goto out_set_drvdata;
return 0;
-out_req_irq:
- free_irq(pci_dev->irq, vp_dev);
out_set_drvdata:
pci_set_drvdata(pci_dev, NULL);
pci_iounmap(pci_dev, vp_dev->ioaddr);
--
1.6.3.rc3.1.g830204
2009 May 13
1
[PATCHv5 3/3] virtio_pci: optional MSI-X support
...+
/* The remaining space is defined by each driver as the per-driver
* configuration space */
-#define VIRTIO_PCI_CONFIG 20
+#define VIRTIO_PCI_CONFIG(dev) ((dev)->msix_enabled ? 24 : 20)
/* Virtio ABI version, this must match exactly */
#define VIRTIO_PCI_ABI_VERSION 0
--
1.6.3.rc3.1.g830204
2009 May 13
1
[PATCHv5 3/3] virtio_pci: optional MSI-X support
...+
/* The remaining space is defined by each driver as the per-driver
* configuration space */
-#define VIRTIO_PCI_CONFIG 20
+#define VIRTIO_PCI_CONFIG(dev) ((dev)->msix_enabled ? 24 : 20)
/* Virtio ABI version, this must match exactly */
#define VIRTIO_PCI_ABI_VERSION 0
--
1.6.3.rc3.1.g830204
2009 May 14
0
[PATCHv6 1/4] virtio: add names to virtqueue struct, mapping from devices to queues.
...ev;
/* We expect one virtqueue, for requests. */
- chan->vq = vdev->config->find_vq(vdev, 0, req_done);
+ chan->vq = vdev->config->find_vq(vdev, 0, req_done, "requests");
if (IS_ERR(chan->vq)) {
err = PTR_ERR(chan->vq);
goto out_free_vq;
--
1.6.3.rc3.1.g830204
2009 May 14
0
[PATCHv6 1/4] virtio: add names to virtqueue struct, mapping from devices to queues.
...ev;
/* We expect one virtqueue, for requests. */
- chan->vq = vdev->config->find_vq(vdev, 0, req_done);
+ chan->vq = vdev->config->find_vq(vdev, 0, req_done, "requests");
if (IS_ERR(chan->vq)) {
err = PTR_ERR(chan->vq);
goto out_free_vq;
--
1.6.3.rc3.1.g830204
2009 May 14
1
[PATCHv6 4/4] virtio_pci: optional MSI-X support
...+
/* The remaining space is defined by each driver as the per-driver
* configuration space */
-#define VIRTIO_PCI_CONFIG 20
+#define VIRTIO_PCI_CONFIG(dev) ((dev)->msix_enabled ? 24 : 20)
/* Virtio ABI version, this must match exactly */
#define VIRTIO_PCI_ABI_VERSION 0
--
1.6.3.rc3.1.g830204
2009 May 14
1
[PATCHv6 4/4] virtio_pci: optional MSI-X support
...+
/* The remaining space is defined by each driver as the per-driver
* configuration space */
-#define VIRTIO_PCI_CONFIG 20
+#define VIRTIO_PCI_CONFIG(dev) ((dev)->msix_enabled ? 24 : 20)
/* Virtio ABI version, this must match exactly */
#define VIRTIO_PCI_ABI_VERSION 0
--
1.6.3.rc3.1.g830204
2009 May 11
0
[PATCH 2/2] qemu-kvm: use common code for assigned msix
...asy way to get MSI-X usage data from the
+ * guest. As a hack, we can look at vector control and message data fields,
+ * and assume that all unmasked vectors with data != 0 are used. */
+ int msix_hack;
};
PCIDevice *pci_register_device(PCIBus *bus, const char *name,
--
1.6.3.rc3.1.g830204
2009 May 11
0
[PATCH 2/2] qemu-kvm: use common code for assigned msix
...asy way to get MSI-X usage data from the
+ * guest. As a hack, we can look at vector control and message data fields,
+ * and assume that all unmasked vectors with data != 0 are used. */
+ int msix_hack;
};
PCIDevice *pci_register_device(PCIBus *bus, const char *name,
--
1.6.3.rc3.1.g830204
2009 May 12
0
[PATCHv4] virtio: find_vqs/del_vqs virtio operations
...e, "requests");
- if (IS_ERR(chan->vq)) {
- err = PTR_ERR(chan->vq);
+ err = vdev->config->find_vqs(vdev, 1, &chan->vq, callbacks, name);
+ if (err)
goto out_free_vq;
- }
chan->vq->vdev->priv = chan;
spin_lock_init(&chan->lock);
--
1.6.3.rc3.1.g830204
2009 May 12
0
[PATCHv4] virtio: find_vqs/del_vqs virtio operations
...e, "requests");
- if (IS_ERR(chan->vq)) {
- err = PTR_ERR(chan->vq);
+ err = vdev->config->find_vqs(vdev, 1, &chan->vq, callbacks, name);
+ if (err)
goto out_free_vq;
- }
chan->vq->vdev->priv = chan;
spin_lock_init(&chan->lock);
--
1.6.3.rc3.1.g830204