search for: vq_vector

Displaying 4 results from an estimated 4 matches for "vq_vector".

Did you mean: ve_vector
2009 Apr 27
0
[PATCH 8/8] virtio_pci: optional MSI-X support
...hould be enough, + * and I'm too lazy to allocate each name separately. */ + char (*msix_names)[256]; + /* Number of vectors configured at startup (excludes per-virtqueue + * vectors if any) */ + unsigned msix_preset_vectors; + /* Number of per-virtqueue vectors if any. */ + unsigned msix_per_vq_vectors; +}; + +/* Constants for MSI-X */ +/* Use first vector for configuration changes, second and the rest for + * virtqueues Thus, we need at least 2 vectors for MSI. */ +enum { + VP_MSIX_CONFIG_VECTOR = 0, + VP_MSIX_VQ_VECTOR = 1, + VP_MSIX_MIN_VECTORS = 2 }; +static inline int vq_vector(int index...
2009 Apr 27
0
[PATCH 8/8] virtio_pci: optional MSI-X support
...hould be enough, + * and I'm too lazy to allocate each name separately. */ + char (*msix_names)[256]; + /* Number of vectors configured at startup (excludes per-virtqueue + * vectors if any) */ + unsigned msix_preset_vectors; + /* Number of per-virtqueue vectors if any. */ + unsigned msix_per_vq_vectors; +}; + +/* Constants for MSI-X */ +/* Use first vector for configuration changes, second and the rest for + * virtqueues Thus, we need at least 2 vectors for MSI. */ +enum { + VP_MSIX_CONFIG_VECTOR = 0, + VP_MSIX_VQ_VECTOR = 1, + VP_MSIX_MIN_VECTORS = 2 }; +static inline int vq_vector(int index...
2015 Nov 18
2
[RFC] kvmtool: add support for modern virtio-pci
...= ioport__read8(data); + if (vdev->ops->notify_status) + vdev->ops->notify_status(vpci->kvm, vpci->dev, vpci->status); + break; + case VIRTIO_PCI_COMMON_Q_SELECT: + vpci->queue_selector = ioport__read16(data); + break; + case VIRTIO_PCI_COMMON_Q_MSIX: + vec = vpci->vq_vector[vpci->queue_selector] = ioport__read16(data); + + if (vec == VIRTIO_MSI_NO_VECTOR) + break; + + gsi = irq__add_msix_route(vpci->kvm, &vpci->msix_table[vec].msg); + vpci->gsis[vpci->queue_selector] = gsi; + if (vdev->ops->notify_vq_gsi) + vdev->ops->notify_vq_g...
2015 Nov 18
2
[RFC] kvmtool: add support for modern virtio-pci
...= ioport__read8(data); + if (vdev->ops->notify_status) + vdev->ops->notify_status(vpci->kvm, vpci->dev, vpci->status); + break; + case VIRTIO_PCI_COMMON_Q_SELECT: + vpci->queue_selector = ioport__read16(data); + break; + case VIRTIO_PCI_COMMON_Q_MSIX: + vec = vpci->vq_vector[vpci->queue_selector] = ioport__read16(data); + + if (vec == VIRTIO_MSI_NO_VECTOR) + break; + + gsi = irq__add_msix_route(vpci->kvm, &vpci->msix_table[vec].msg); + vpci->gsis[vpci->queue_selector] = gsi; + if (vdev->ops->notify_vq_gsi) + vdev->ops->notify_vq_g...