xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] Xen PCI backend driver.
@ 2010-12-13 18:01 Konrad Rzeszutek Wilk
  2010-12-13 18:01 ` [PATCH 1/9] xen: export xen_gsi_from_irq, it is required by modular pciback Konrad Rzeszutek Wilk
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Konrad Rzeszutek Wilk @ 2010-12-13 18:01 UTC (permalink / raw)
  To: xen-devel
  Cc: Jan Beulich, linux-kernel, Jeremy Fitzhardinge,
	Konrad Rzeszutek Wilk, Stefano Stabellini

Attached is set of patches for the Xen PCI backend driver. Lot of driver pieces
have been reviewed in the past, but I don't recall it being sent to xen-devel.
The infrastructure parts (patches #1-#6) were posted at some point.

The Xen PCI back driver patch (#7) was squished from the git tree
(devel/xen-pciback-0.2) as some of them were just boring (supporting 2.6.18
driver to work, checkpatch), and some already posted/reviewed. The 
full tree is available at:

git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git devel/xen-pciback-0.2

.. and that is the tree I will use when asking Linus to pull the
driver.

So what is Xen PCI backend? It is a simple driver that utilizes the
ring-buffer to exchange 0xcf8 inb/outb commands from the guest to
the control domain. The backend carries out sanitized PCI configuration
reads/writes on behest of the guest. It also has some extra commands
for enabling/disabling MSI/MSI-X interrupts.

Please take a look at the patches (or even just a couple of them)
and provide feedback.

The patch set depends on stable/xenbus, which is back-port of XenBus
backend driver done by Ian Campbell. A merge of this tree along with
stable/xenbus is available as:

git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git master

The diffstat:

 arch/x86/include/asm/xen/pci.h                  |   16 +
 arch/x86/pci/xen.c                              |   73 ++
 drivers/xen/Kconfig                             |   65 ++
 drivers/xen/Makefile                            |    1 +
 drivers/xen/events.c                            |   68 ++-
 drivers/xen/pciback/Makefile                    |   17 +
 drivers/xen/pciback/conf_space.c                |  435 +++++++
 drivers/xen/pciback/conf_space.h                |  126 +++
 drivers/xen/pciback/conf_space_capability.c     |   66 ++
 drivers/xen/pciback/conf_space_capability.h     |   26 +
 drivers/xen/pciback/conf_space_capability_msi.c |  111 ++
 drivers/xen/pciback/conf_space_capability_pm.c  |  113 ++
 drivers/xen/pciback/conf_space_capability_vpd.c |   40 +
 drivers/xen/pciback/conf_space_header.c         |  385 +++++++
 drivers/xen/pciback/conf_space_quirks.c         |  140 +++
 drivers/xen/pciback/conf_space_quirks.h         |   35 +
 drivers/xen/pciback/controller.c                |  442 ++++++++
 drivers/xen/pciback/passthrough.c               |  178 +++
 drivers/xen/pciback/pci_stub.c                  | 1371 +++++++++++++++++++++++
 drivers/xen/pciback/pciback.h                   |  142 +++
 drivers/xen/pciback/pciback_ops.c               |  241 ++++
 drivers/xen/pciback/slot.c                      |  191 ++++
 drivers/xen/pciback/vpci.c                      |  244 ++++
 drivers/xen/pciback/xenbus.c                    |  726 ++++++++++++
 include/xen/events.h                            |    9 +
 25 files changed, 5258 insertions(+), 3 deletions(-)

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

end of thread, other threads:[~2010-12-14 10:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-13 18:01 [PATCH v2] Xen PCI backend driver Konrad Rzeszutek Wilk
2010-12-13 18:01 ` [PATCH 1/9] xen: export xen_gsi_from_irq, it is required by modular pciback Konrad Rzeszutek Wilk
2010-12-13 18:01 ` [PATCH 2/9] xen/pci: Add xen_[find|register|unregister]_device_domain_owner functions Konrad Rzeszutek Wilk
2010-12-13 19:28   ` Jeremy Fitzhardinge
2010-12-13 18:01 ` [PATCH 3/9] xen: Check if the PCI device is owned by a domain different than DOMID_SELF Konrad Rzeszutek Wilk
2010-12-13 18:01 ` [PATCH 4/9] xen: Add support to check if IRQ line is shared with other domains Konrad Rzeszutek Wilk
2010-12-13 19:34   ` Jeremy Fitzhardinge
2010-12-13 18:01 ` [PATCH 5/9] xen: implement bind_interdomain_evtchn_to_irqhandler for backend drivers Konrad Rzeszutek Wilk
2010-12-13 18:01 ` [PATCH 6/9] pci/xen: Make xen_[find|register|unregister]_domain_owner be _GPL Konrad Rzeszutek Wilk
2010-12-13 19:18   ` Jeremy Fitzhardinge
2010-12-13 18:01 ` [PATCH 7/9] xen-pciback: Backend driver for Xen pci-front Konrad Rzeszutek Wilk
2010-12-13 18:01 ` [PATCH 8/9] xen/pciback: Fix checkpatch warnings and errors Konrad Rzeszutek Wilk
2010-12-13 18:01 ` [PATCH 9/9] xen/xen-pciback: Swap over to DEFINE_PCI_DEVICE_TABLE Konrad Rzeszutek Wilk
2010-12-14 10:08   ` Jan Beulich

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).