qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/13] pci: Cleanups & preparations for KVM device assignment
@ 2012-06-04  8:52 Jan Kiszka
  2012-06-04  8:52 ` [Qemu-devel] [PATCH 01/13] pci: Refactor pci_change_irq_level Jan Kiszka
                   ` (12 more replies)
  0 siblings, 13 replies; 88+ messages in thread
From: Jan Kiszka @ 2012-06-04  8:52 UTC (permalink / raw)
  To: Michael S. Tsirkin, qemu-devel; +Cc: Alex Williamson

Besides some smaller cleanups, this series has two main topics:

The first is the already posted PCI IRQ routing lookup and notifier. The
lookup has been based on the cached routing Michael suggested also for
emulated devices. However, this still introduces a new callback and
keeps the bus irq_count untouched due to the vmstate complications when
changing it.

The second half refactors PCI device address parsing, introducing an
universal parsing function. It is then used to provide a new qdev
property that accepts fully qualified PCI addresses (domain:bus:device.
function).

These two major changes will help refactoring PCI device assignment in
qemu-kvm in order to upstream it soon. But also the upcoming VFIO-based
assignment should be able to benefit.

Jan Kiszka (13):
  pci: Refactor pci_change_irq_level
  pci: Fold pci_bus_new_inplace into pci_bus_new
  pci: Introduce cached device INTx routing
  pci: Rename map_irq to route_pin
  pci: Add pci_device_route_intx_to_irq
  pci: Add INTx routing notifier
  pci: Make domain and bus unsigned in pci_read_devaddr
  pci: Export pci_parse_devaddr instead of pci_read_devaddr
  pci: Introduce and apply PCIDeviceAddress
  pci: Fix coding style of pci_parse_devaddr
  Move pci_parse_devaddr to qdev-properties
  qdev-properties: Use qemu_parse_pci_devaddr for pci-devfn property
  qdev-properties: Add pci-devaddr property

 hw/alpha_sys.h          |    2 +-
 hw/alpha_typhoon.c      |    4 +-
 hw/apb_pci.c            |    6 +-
 hw/bonito.c             |    2 +-
 hw/dec_pci.c            |    2 +-
 hw/grackle_pci.c        |    1 +
 hw/gt64xxx.c            |    1 +
 hw/ioh3420.c            |    5 +-
 hw/ioh3420.h            |    3 +-
 hw/pci-hotplug.c        |   33 +++++--
 hw/pci.c                |  212 ++++++++++++++++++++++-------------------------
 hw/pci.h                |   40 +++++++---
 hw/pci_bridge.c         |   18 +++-
 hw/pci_bridge.h         |    4 +-
 hw/pci_bridge_dev.c     |    7 +-
 hw/pci_internals.h      |    5 +-
 hw/piix_pci.c           |   25 +++++-
 hw/ppc4xx_pci.c         |    2 +-
 hw/ppce500_pci.c        |    2 +-
 hw/prep_pci.c           |    2 +-
 hw/qdev-properties.c    |  142 ++++++++++++++++++++++++++++----
 hw/qdev.h               |   10 ++
 hw/sh_pci.c             |    2 +-
 hw/spapr_pci.c          |    2 +-
 hw/unin_pci.c           |    4 +-
 hw/versatile_pci.c      |    2 +-
 hw/xio3130_downstream.c |    5 +-
 hw/xio3130_downstream.h |    3 +-
 hw/xio3130_upstream.c   |    5 +-
 hw/xio3130_upstream.h   |    3 +-
 qemu-common.h           |    7 ++
 31 files changed, 371 insertions(+), 190 deletions(-)

-- 
1.7.3.4

^ permalink raw reply	[flat|nested] 88+ messages in thread

end of thread, other threads:[~2012-06-10 17:57 UTC | newest]

Thread overview: 88+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-04  8:52 [Qemu-devel] [PATCH 00/13] pci: Cleanups & preparations for KVM device assignment Jan Kiszka
2012-06-04  8:52 ` [Qemu-devel] [PATCH 01/13] pci: Refactor pci_change_irq_level Jan Kiszka
2012-06-10 11:28   ` Michael S. Tsirkin
2012-06-04  8:52 ` [Qemu-devel] [PATCH 02/13] pci: Fold pci_bus_new_inplace into pci_bus_new Jan Kiszka
2012-06-07 12:51   ` Andreas Färber
2012-06-07 15:07     ` Jan Kiszka
2012-06-04  8:52 ` [Qemu-devel] [PATCH 03/13] pci: Introduce cached device INTx routing Jan Kiszka
2012-06-10 11:28   ` Michael S. Tsirkin
2012-06-04  8:52 ` [Qemu-devel] [PATCH 04/13] pci: Rename map_irq to route_pin Jan Kiszka
2012-06-10 11:28   ` Michael S. Tsirkin
2012-06-10 13:23   ` Michael S. Tsirkin
2012-06-04  8:52 ` [Qemu-devel] [PATCH 05/13] pci: Add pci_device_route_intx_to_irq Jan Kiszka
2012-06-07 14:32   ` Michael S. Tsirkin
2012-06-07 15:10     ` Jan Kiszka
2012-06-07 16:28       ` Michael S. Tsirkin
2012-06-07 16:46         ` Jan Kiszka
2012-06-07 16:55           ` Michael S. Tsirkin
2012-06-10  9:55           ` Michael S. Tsirkin
2012-06-10 10:08             ` Jan Kiszka
2012-06-10 10:41               ` Michael S. Tsirkin
2012-06-10 10:49                 ` Jan Kiszka
2012-06-10 10:53                   ` Michael S. Tsirkin
2012-06-10 14:19                   ` Alex Williamson
2012-06-10 14:43                     ` Michael S. Tsirkin
2012-06-10 15:25                       ` Alex Williamson
2012-06-10 15:55                         ` Michael S. Tsirkin
2012-06-10 16:30                           ` Jan Kiszka
2012-06-10 16:50                             ` Michael S. Tsirkin
2012-06-10 17:04                               ` Michael S. Tsirkin
2012-06-04  8:52 ` [Qemu-devel] [PATCH 06/13] pci: Add INTx routing notifier Jan Kiszka
2012-06-07 13:14   ` Michael S. Tsirkin
2012-06-07 15:13     ` Jan Kiszka
2012-06-08 12:47   ` [Qemu-devel] [PATCH v2 " Jan Kiszka
2012-06-10  9:48   ` [Qemu-devel] [PATCH " Michael S. Tsirkin
2012-06-10 10:05     ` Jan Kiszka
2012-06-10 10:33       ` Michael S. Tsirkin
2012-06-10 10:44         ` Jan Kiszka
2012-06-10 11:11           ` Michael S. Tsirkin
2012-06-10 11:18             ` Jan Kiszka
2012-06-10 11:39               ` Michael S. Tsirkin
2012-06-10 12:09                 ` Jan Kiszka
2012-06-10 12:16                   ` Michael S. Tsirkin
2012-06-10 12:33                     ` Jan Kiszka
2012-06-10 12:42                       ` Michael S. Tsirkin
2012-06-10 12:47                         ` Jan Kiszka
2012-06-10 13:19                           ` Michael S. Tsirkin
2012-06-10 12:32               ` Michael S. Tsirkin
2012-06-04  8:52 ` [Qemu-devel] [PATCH 07/13] pci: Make domain and bus unsigned in pci_read_devaddr Jan Kiszka
2012-06-04  8:52 ` [Qemu-devel] [PATCH 08/13] pci: Export pci_parse_devaddr instead of pci_read_devaddr Jan Kiszka
2012-06-04  8:52 ` [Qemu-devel] [PATCH 09/13] pci: Introduce and apply PCIDeviceAddress Jan Kiszka
2012-06-10  9:37   ` Michael S. Tsirkin
2012-06-10 10:10     ` Jan Kiszka
2012-06-04  8:52 ` [Qemu-devel] [PATCH 10/13] pci: Fix coding style of pci_parse_devaddr Jan Kiszka
2012-06-04  8:52 ` [Qemu-devel] [PATCH 11/13] Move pci_parse_devaddr to qdev-properties Jan Kiszka
2012-06-07 12:57   ` Andreas Färber
2012-06-07 15:11     ` Jan Kiszka
2012-06-07 15:56       ` Andreas Färber
2012-06-08 10:57         ` Jan Kiszka
2012-06-08 12:03           ` Andreas Färber
2012-06-08 12:14             ` Jan Kiszka
2012-06-08 12:18               ` Andreas Färber
2012-06-08 12:45                 ` Jan Kiszka
2012-06-08 14:17                   ` Michael S. Tsirkin
2012-06-08 14:20                     ` Anthony Liguori
2012-06-08 13:55     ` Anthony Liguori
2012-06-08 19:21       ` Andreas Färber
2012-06-04  8:52 ` [Qemu-devel] [PATCH 12/13] qdev-properties: Use qemu_parse_pci_devaddr for pci-devfn property Jan Kiszka
2012-06-04  8:52 ` [Qemu-devel] [PATCH 13/13] qdev-properties: Add pci-devaddr property Jan Kiszka
2012-06-10  9:35   ` Michael S. Tsirkin
2012-06-10 10:14     ` Jan Kiszka
2012-06-10 10:49       ` Michael S. Tsirkin
2012-06-10 10:52         ` Jan Kiszka
2012-06-10 10:58           ` Michael S. Tsirkin
2012-06-10 11:00             ` Jan Kiszka
2012-06-10 11:17               ` Michael S. Tsirkin
2012-06-10 11:25                 ` Jan Kiszka
2012-06-10 12:01                   ` Michael S. Tsirkin
2012-06-10 13:41                     ` Alex Williamson
2012-06-10 14:03                       ` Michael S. Tsirkin
2012-06-10 14:41                         ` Alex Williamson
2012-06-10 14:54                           ` Michael S. Tsirkin
2012-06-10 15:15                             ` Alex Williamson
2012-06-10 15:37                               ` Michael S. Tsirkin
2012-06-10 15:58                                 ` Alex Williamson
2012-06-10 16:22                                   ` Michael S. Tsirkin
2012-06-10 17:29                                     ` Alex Williamson
2012-06-10 17:57                                       ` Michael S. Tsirkin
2012-06-10 13:49       ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).