search for: stl_phys

Displaying 17 results from an estimated 17 matches for "stl_phys".

2009 May 20
9
[PATCH] qemu: msi irq allocation api
define api for allocating/setting up msi-x irqs, and for updating them with msi-x vector information, supply implementation in ioapic. Please comment on this API: I intend to port my msi-x patch to work on top of it. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- hw/apic.c | 1 - hw/ioapic.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ hw/irq.c
2009 May 20
9
[PATCH] qemu: msi irq allocation api
define api for allocating/setting up msi-x irqs, and for updating them with msi-x vector information, supply implementation in ioapic. Please comment on this API: I intend to port my msi-x patch to work on top of it. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- hw/apic.c | 1 - hw/ioapic.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ hw/irq.c
2009 Oct 27
1
[PATCH 2/4] megasas: LSI MegaRAID SAS HBA emulation
...index = 0; + num++; + } + +#ifdef DEBUG_MEGASAS_QUEUE + status = megasas_frame_get_cmd_status(cmd->pa); + DPRINTF("Complete frame %d: context %x status %x deferred %d active %d\n", + cmd->index, cmd->context, status, cmds_deferred, + cmds_active); +#endif + stl_phys(s->reply_queue_pa + cmd->index * sizeof(uint32_t), cmd->context); + + /* Free up command */ + if (cmd->sge_count) { + megasas_unmap_sgl(cmd); + cmd->sge_count = 0; + cmd->sge_size = 0; + } + cmd->context = 0; + cmd->pa = 0; + cmd->lun = NULL; + + /* +...
2009 Oct 27
1
[PATCH 2/4] megasas: LSI MegaRAID SAS HBA emulation
...index = 0; + num++; + } + +#ifdef DEBUG_MEGASAS_QUEUE + status = megasas_frame_get_cmd_status(cmd->pa); + DPRINTF("Complete frame %d: context %x status %x deferred %d active %d\n", + cmd->index, cmd->context, status, cmds_deferred, + cmds_active); +#endif + stl_phys(s->reply_queue_pa + cmd->index * sizeof(uint32_t), cmd->context); + + /* Free up command */ + if (cmd->sge_count) { + megasas_unmap_sgl(cmd); + cmd->sge_count = 0; + cmd->sge_size = 0; + } + cmd->context = 0; + cmd->pa = 0; + cmd->lun = NULL; + + /* +...
2009 Jun 21
1
[PATCHv6 05/12] qemu/pci: MSI-X support functions
...x_is_masked(dev, vector)) { + msix_set_pending(dev, vector); + return; + } + + address = pci_get_long(table_entry + MSIX_MSG_UPPER_ADDR); + address = (address << 32) | pci_get_long(table_entry + MSIX_MSG_ADDR); + data = pci_get_long(table_entry + MSIX_MSG_DATA); + stl_phys(address, data); +} + +void msix_reset(PCIDevice *dev) +{ + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) + return; + msix_free_irq_entries(dev); + dev->config[dev->msix_cap + MSIX_ENABLE_OFFSET] &= MSIX_ENABLE_MASK; + memset(dev->msix_table_page, 0, MSIX_PAGE_S...
2009 Jun 21
1
[PATCHv6 05/12] qemu/pci: MSI-X support functions
...x_is_masked(dev, vector)) { + msix_set_pending(dev, vector); + return; + } + + address = pci_get_long(table_entry + MSIX_MSG_UPPER_ADDR); + address = (address << 32) | pci_get_long(table_entry + MSIX_MSG_ADDR); + data = pci_get_long(table_entry + MSIX_MSG_DATA); + stl_phys(address, data); +} + +void msix_reset(PCIDevice *dev) +{ + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) + return; + msix_free_irq_entries(dev); + dev->config[dev->msix_cap + MSIX_ENABLE_OFFSET] &= MSIX_ENABLE_MASK; + memset(dev->msix_table_page, 0, MSIX_PAGE_S...
2009 Jun 02
0
[PATCHv2 05/13] qemu: MSI-X support functions
...x_is_masked(dev, vector)) { + msix_set_pending(dev, vector); + return; + } + + address = pci_get_long(table_entry + MSIX_MSG_UPPER_ADDR); + address = (address << 32) | pci_get_long(table_entry + MSIX_MSG_ADDR); + data = pci_get_long(table_entry + MSIX_MSG_DATA); + stl_phys(address, data); +} + +void msix_reset(PCIDevice *dev) +{ + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) + return; + msix_free_irq_entries(dev); + dev->config[dev->msix_cap + MSIX_ENABLE_OFFSET] &= MSIX_ENABLE_MASK; + memset(dev->msix_table_page, 0, MSIX_PAGE_S...
2009 Jun 02
0
[PATCHv2 05/13] qemu: MSI-X support functions
...x_is_masked(dev, vector)) { + msix_set_pending(dev, vector); + return; + } + + address = pci_get_long(table_entry + MSIX_MSG_UPPER_ADDR); + address = (address << 32) | pci_get_long(table_entry + MSIX_MSG_ADDR); + data = pci_get_long(table_entry + MSIX_MSG_DATA); + stl_phys(address, data); +} + +void msix_reset(PCIDevice *dev) +{ + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) + return; + msix_free_irq_entries(dev); + dev->config[dev->msix_cap + MSIX_ENABLE_OFFSET] &= MSIX_ENABLE_MASK; + memset(dev->msix_table_page, 0, MSIX_PAGE_S...
2009 Jun 18
0
[PATCHv5 05/13] qemu: MSI-X support functions
...x_is_masked(dev, vector)) { + msix_set_pending(dev, vector); + return; + } + + address = pci_get_long(table_entry + MSIX_MSG_UPPER_ADDR); + address = (address << 32) | pci_get_long(table_entry + MSIX_MSG_ADDR); + data = pci_get_long(table_entry + MSIX_MSG_DATA); + stl_phys(address, data); +} + +void msix_reset(PCIDevice *dev) +{ + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) + return; + msix_free_irq_entries(dev); + dev->config[dev->msix_cap + MSIX_ENABLE_OFFSET] &= MSIX_ENABLE_MASK; + memset(dev->msix_table_page, 0, MSIX_PAGE_S...
2009 Jun 18
0
[PATCHv5 05/13] qemu: MSI-X support functions
...x_is_masked(dev, vector)) { + msix_set_pending(dev, vector); + return; + } + + address = pci_get_long(table_entry + MSIX_MSG_UPPER_ADDR); + address = (address << 32) | pci_get_long(table_entry + MSIX_MSG_ADDR); + data = pci_get_long(table_entry + MSIX_MSG_DATA); + stl_phys(address, data); +} + +void msix_reset(PCIDevice *dev) +{ + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) + return; + msix_free_irq_entries(dev); + dev->config[dev->msix_cap + MSIX_ENABLE_OFFSET] &= MSIX_ENABLE_MASK; + memset(dev->msix_table_page, 0, MSIX_PAGE_S...
2009 Jun 10
0
[PATCHv4 05/13] qemu: MSI-X support functions
...x_is_masked(dev, vector)) { + msix_set_pending(dev, vector); + return; + } + + address = pci_get_long(table_entry + MSIX_MSG_UPPER_ADDR); + address = (address << 32) | pci_get_long(table_entry + MSIX_MSG_ADDR); + data = pci_get_long(table_entry + MSIX_MSG_DATA); + stl_phys(address, data); +} + +void msix_reset(PCIDevice *dev) +{ + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) + return; + msix_free_irq_entries(dev); + dev->config[dev->msix_cap + MSIX_ENABLE_OFFSET] &= MSIX_ENABLE_MASK; + memset(dev->msix_table_page, 0, MSIX_PAGE_S...
2009 Jun 10
0
[PATCHv4 05/13] qemu: MSI-X support functions
...x_is_masked(dev, vector)) { + msix_set_pending(dev, vector); + return; + } + + address = pci_get_long(table_entry + MSIX_MSG_UPPER_ADDR); + address = (address << 32) | pci_get_long(table_entry + MSIX_MSG_ADDR); + data = pci_get_long(table_entry + MSIX_MSG_DATA); + stl_phys(address, data); +} + +void msix_reset(PCIDevice *dev) +{ + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) + return; + msix_free_irq_entries(dev); + dev->config[dev->msix_cap + MSIX_ENABLE_OFFSET] &= MSIX_ENABLE_MASK; + memset(dev->msix_table_page, 0, MSIX_PAGE_S...
2009 May 25
1
[PATCH 05/11] qemu: MSI-X support functions
...x_is_masked(dev, vector)) { + msix_set_pending(dev, vector); + return; + } + + address = pci_get_long(table_entry + MSIX_MSG_UPPER_ADDR); + address = (address << 32) | pci_get_long(table_entry + MSIX_MSG_ADDR); + data = pci_get_long(table_entry + MSIX_MSG_DATA); + stl_phys(address, data); +} + +void msix_reset(PCIDevice *dev) +{ + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) + return; + msix_free_irq_entries(dev); + dev->config[dev->msix_cap + MSIX_ENABLE_OFFSET] &= MSIX_ENABLE_MASK; + memset(dev->msix_table_page, 0, MSIX_PAGE_S...
2009 May 25
1
[PATCH 05/11] qemu: MSI-X support functions
...x_is_masked(dev, vector)) { + msix_set_pending(dev, vector); + return; + } + + address = pci_get_long(table_entry + MSIX_MSG_UPPER_ADDR); + address = (address << 32) | pci_get_long(table_entry + MSIX_MSG_ADDR); + data = pci_get_long(table_entry + MSIX_MSG_DATA); + stl_phys(address, data); +} + +void msix_reset(PCIDevice *dev) +{ + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) + return; + msix_free_irq_entries(dev); + dev->config[dev->msix_cap + MSIX_ENABLE_OFFSET] &= MSIX_ENABLE_MASK; + memset(dev->msix_table_page, 0, MSIX_PAGE_S...
2009 Jun 05
1
[PATCHv3 05/13] qemu: MSI-X support functions
...x_is_masked(dev, vector)) { + msix_set_pending(dev, vector); + return; + } + + address = pci_get_long(table_entry + MSIX_MSG_UPPER_ADDR); + address = (address << 32) | pci_get_long(table_entry + MSIX_MSG_ADDR); + data = pci_get_long(table_entry + MSIX_MSG_DATA); + stl_phys(address, data); +} + +void msix_reset(PCIDevice *dev) +{ + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) + return; + msix_free_irq_entries(dev); + dev->config[dev->msix_cap + MSIX_ENABLE_OFFSET] &= MSIX_ENABLE_MASK; + memset(dev->msix_table_page, 0, MSIX_PAGE_S...
2009 Jun 05
1
[PATCHv3 05/13] qemu: MSI-X support functions
...x_is_masked(dev, vector)) { + msix_set_pending(dev, vector); + return; + } + + address = pci_get_long(table_entry + MSIX_MSG_UPPER_ADDR); + address = (address << 32) | pci_get_long(table_entry + MSIX_MSG_ADDR); + data = pci_get_long(table_entry + MSIX_MSG_DATA); + stl_phys(address, data); +} + +void msix_reset(PCIDevice *dev) +{ + if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) + return; + msix_free_irq_entries(dev); + dev->config[dev->msix_cap + MSIX_ENABLE_OFFSET] &= MSIX_ENABLE_MASK; + memset(dev->msix_table_page, 0, MSIX_PAGE_S...
2010 Aug 12
59
[PATCH 00/15] RFC xen device model support
Hi all, this is the long awaited patch series to add xen device model support in qemu; the main author is Anthony Perard. Developing this series we tried to come up with the cleanest possible solution from the qemu point of view, limiting the amount of changes to common code as much as possible. The end result still requires a couple of hooks in piix_pci but overall the impact should be very