search for: qemu_pci_cap_msix

Displaying 18 results from an estimated 18 matches for "qemu_pci_cap_msix".

2009 Jun 02
0
[PATCHv2 05/13] qemu: MSI-X support functions
..._mmio_index = cpu_register_io_memory(0, msix_mmio_read, + msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_entries_nr = nentries; + dev->cap_supported |= QEMU_PCI_CAP_MSIX; + /* If disabled, stop here. User can later load confiuration with MSI-X + * enabled. */ + if (msix_disable) + return 0; + + ret = msix_add_config(dev, nentries, bar_nr, bar_size); + if (ret) + goto err_config; + + dev->cap_present |= QEMU_PCI_CAP_MSIX; + ret...
2009 Jun 02
0
[PATCHv2 05/13] qemu: MSI-X support functions
..._mmio_index = cpu_register_io_memory(0, msix_mmio_read, + msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_entries_nr = nentries; + dev->cap_supported |= QEMU_PCI_CAP_MSIX; + /* If disabled, stop here. User can later load confiuration with MSI-X + * enabled. */ + if (msix_disable) + return 0; + + ret = msix_add_config(dev, nentries, bar_nr, bar_size); + if (ret) + goto err_config; + + dev->cap_present |= QEMU_PCI_CAP_MSIX; + ret...
2009 Jun 18
0
[PATCHv5 05/13] qemu: MSI-X support functions
..._mmio_index = cpu_register_io_memory(0, msix_mmio_read, + msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_entries_nr = nentries; + dev->cap_supported |= QEMU_PCI_CAP_MSIX; + /* If disabled, stop here. User can later load confiuration with MSI-X + * enabled. */ + if (msix_disable) + return 0; + + ret = msix_add_config(dev, nentries, bar_nr, bar_size); + if (ret) + goto err_config; + + dev->cap_present |= QEMU_PCI_CAP_MSIX; + ret...
2009 Jun 18
0
[PATCHv5 05/13] qemu: MSI-X support functions
..._mmio_index = cpu_register_io_memory(0, msix_mmio_read, + msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_entries_nr = nentries; + dev->cap_supported |= QEMU_PCI_CAP_MSIX; + /* If disabled, stop here. User can later load confiuration with MSI-X + * enabled. */ + if (msix_disable) + return 0; + + ret = msix_add_config(dev, nentries, bar_nr, bar_size); + if (ret) + goto err_config; + + dev->cap_present |= QEMU_PCI_CAP_MSIX; + ret...
2009 Jun 10
0
[PATCHv4 05/13] qemu: MSI-X support functions
..._mmio_index = cpu_register_io_memory(0, msix_mmio_read, + msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_entries_nr = nentries; + dev->cap_supported |= QEMU_PCI_CAP_MSIX; + /* If disabled, stop here. User can later load confiuration with MSI-X + * enabled. */ + if (msix_disable) + return 0; + + ret = msix_add_config(dev, nentries, bar_nr, bar_size); + if (ret) + goto err_config; + + dev->cap_present |= QEMU_PCI_CAP_MSIX; + ret...
2009 Jun 10
0
[PATCHv4 05/13] qemu: MSI-X support functions
..._mmio_index = cpu_register_io_memory(0, msix_mmio_read, + msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_entries_nr = nentries; + dev->cap_supported |= QEMU_PCI_CAP_MSIX; + /* If disabled, stop here. User can later load confiuration with MSI-X + * enabled. */ + if (msix_disable) + return 0; + + ret = msix_add_config(dev, nentries, bar_nr, bar_size); + if (ret) + goto err_config; + + dev->cap_present |= QEMU_PCI_CAP_MSIX; + ret...
2009 May 25
1
[PATCH 05/11] qemu: MSI-X support functions
..._mmio_index = cpu_register_io_memory(0, msix_mmio_read, + msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_entries_nr = nentries; + dev->cap_supported |= QEMU_PCI_CAP_MSIX; + /* If disabled, stop here. User can later load confiuration with MSI-X + * enabled. */ + if (msix_disable) + return 0; + + ret = msix_add_config(dev, nentries, bar_nr, bar_size); + if (ret) + goto err_config; + + dev->cap_present |= QEMU_PCI_CAP_MSIX; + ret...
2009 May 25
1
[PATCH 05/11] qemu: MSI-X support functions
..._mmio_index = cpu_register_io_memory(0, msix_mmio_read, + msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_entries_nr = nentries; + dev->cap_supported |= QEMU_PCI_CAP_MSIX; + /* If disabled, stop here. User can later load confiuration with MSI-X + * enabled. */ + if (msix_disable) + return 0; + + ret = msix_add_config(dev, nentries, bar_nr, bar_size); + if (ret) + goto err_config; + + dev->cap_present |= QEMU_PCI_CAP_MSIX; + ret...
2009 Jun 05
1
[PATCHv3 05/13] qemu: MSI-X support functions
..._mmio_index = cpu_register_io_memory(0, msix_mmio_read, + msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_entries_nr = nentries; + dev->cap_supported |= QEMU_PCI_CAP_MSIX; + /* If disabled, stop here. User can later load confiuration with MSI-X + * enabled. */ + if (msix_disable) + return 0; + + ret = msix_add_config(dev, nentries, bar_nr, bar_size); + if (ret) + goto err_config; + + dev->cap_present |= QEMU_PCI_CAP_MSIX; + ret...
2009 Jun 05
1
[PATCHv3 05/13] qemu: MSI-X support functions
..._mmio_index = cpu_register_io_memory(0, msix_mmio_read, + msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_entries_nr = nentries; + dev->cap_supported |= QEMU_PCI_CAP_MSIX; + /* If disabled, stop here. User can later load confiuration with MSI-X + * enabled. */ + if (msix_disable) + return 0; + + ret = msix_add_config(dev, nentries, bar_nr, bar_size); + if (ret) + goto err_config; + + dev->cap_present |= QEMU_PCI_CAP_MSIX; + ret...
2009 Jun 21
1
[PATCHv6 05/12] qemu/pci: MSI-X support functions
...msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_entries_nr = nentries; + ret = msix_add_config(dev, nentries, bar_nr, bar_size); + if (ret) + goto err_config; + + dev->cap_present |= QEMU_PCI_CAP_MSIX; + return 0; + +err_config: + cpu_unregister_io_memory(dev->msix_mmio_index); +err_index: + qemu_free(dev->msix_table_page); + dev->msix_table_page = NULL; + qemu_free(dev->msix_entry_used); + dev->msix_entry_used = NULL; + return ret; +} + +/* Clean up resources...
2009 Jun 21
1
[PATCHv6 05/12] qemu/pci: MSI-X support functions
...msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_entries_nr = nentries; + ret = msix_add_config(dev, nentries, bar_nr, bar_size); + if (ret) + goto err_config; + + dev->cap_present |= QEMU_PCI_CAP_MSIX; + return 0; + +err_config: + cpu_unregister_io_memory(dev->msix_mmio_index); +err_index: + qemu_free(dev->msix_table_page); + dev->msix_table_page = NULL; + qemu_free(dev->msix_entry_used); + dev->msix_entry_used = NULL; + return ret; +} + +/* Clean up resources...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
...o_index = cpu_register_io_memory(0, msix_mmio_read, + msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_irq_entries_nr = nentries; + dev->cap_supported |= QEMU_PCI_CAP_MSIX; + if (msix_disable) + return 0; + pci_add_capability(dev, PCI_CAP_ID_MSIX, + PCI_CAPABILITY_CONFIG_MSIX_LENGTH); + dev->cap_present |= QEMU_PCI_CAP_MSIX; + return 0; + +err_index: + qemu_free(dev->msix_table_page); + dev->msix_table_page = NU...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
...o_index = cpu_register_io_memory(0, msix_mmio_read, + msix_mmio_write, dev); + if (dev->msix_mmio_index == -1) { + ret = -EBUSY; + goto err_index; + } + + dev->msix_irq_entries_nr = nentries; + dev->cap_supported |= QEMU_PCI_CAP_MSIX; + if (msix_disable) + return 0; + pci_add_capability(dev, PCI_CAP_ID_MSIX, + PCI_CAPABILITY_CONFIG_MSIX_LENGTH); + dev->cap_present |= QEMU_PCI_CAP_MSIX; + return 0; + +err_index: + qemu_free(dev->msix_table_page); + dev->msix_table_page = NU...
2015 May 12
0
KVM VHOST-BLK is not working
...m: QEMU - git://github.com/asias/qemu.git KERNEL - git://github.com/asias/linux.git The VM I am booting is compiled with MSIX config options. I am seeing a failure in the QEMU function msix_enabled during the initialization of the block device While the first expression (dev->cap_present & QEMU_PCI_CAP_MSIX) is successful, the second one (dev->config[dev->msix_cap + MSIX_CONTROL_OFFSET] & MSIX_ENABLE_MASK) is failing. I could not see a msix_init function from hw/block/virtio-blk.c whereas there is one for VHOST-NET from vmxnet3_init_msix. I will appreciate if someone could point...
2015 May 12
0
KVM VHOST-BLK is not working
...m: QEMU - git://github.com/asias/qemu.git KERNEL - git://github.com/asias/linux.git The VM I am booting is compiled with MSIX config options. I am seeing a failure in the QEMU function msix_enabled during the initialization of the block device While the first expression (dev->cap_present & QEMU_PCI_CAP_MSIX) is successful, the second one (dev->config[dev->msix_cap + MSIX_CONTROL_OFFSET] & MSIX_ENABLE_MASK) is failing. I could not see a msix_init function from hw/block/virtio-blk.c whereas there is one for VHOST-NET from vmxnet3_init_msix. I will appreciate if someone could point...
2011 Nov 02
3
[PATCH RFC 0/2] virtio-pci: polling mode support
MSIX spec requires that device can be operated with all vectors masked, by polling. So the following patchset (lightly tested) adds this ability: when driver reads ISR, the device recalls a pending notification, and returns pending status in the ISR register. The polling driver can operate as follows: - map all VQs and config to the same vector - poll ISR to get status - this also flushes VQ
2011 Nov 02
3
[PATCH RFC 0/2] virtio-pci: polling mode support
MSIX spec requires that device can be operated with all vectors masked, by polling. So the following patchset (lightly tested) adds this ability: when driver reads ISR, the device recalls a pending notification, and returns pending status in the ISR register. The polling driver can operate as follows: - map all VQs and config to the same vector - poll ISR to get status - this also flushes VQ