WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH PV_OPS PCIBACK]

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH PV_OPS PCIBACK]
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Thu, 5 Nov 2009 15:25:39 -0500
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Delivery-date: Thu, 05 Nov 2009 12:31:06 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
In these following patches:
 [PATCH 1/5] xenbus_walk - walk XenStore keys, calling callback.
 [PATCH 2/5] In xen_create_msi_irq, extract the domain id of the MSI device.

We employ an mechanism (as compared to 2.6.18), to extract the domain id
of the non-privileged domain. Specifically we enumerate the XenStore keys and
if a match is found we can extract the domain id. With the domain id we can make
the Xen-HYPERCALL to set the "owner" of the MSI device.

The next patches:
 [PATCH 3/5] Add MSI capability to the pciback driver.
 [PATCH 4/5] Return the physical IRQ number instead of the allocated IRQ number 
to pcifront.

Copy-n-paste the MSI support from 2.6.18 and augment it to return the proper
IRQ number to the pcifront.

The last patch:
 [PATCH 5/5] Fix checkpatch warnings and errors for pciback/ directory.

is just to have a clean base for futher work.

And the diffstat of all the changes:

 drivers/xen/events.c                            |   53 +++++++-
 drivers/xen/pciback/Makefile                    |    1 +
 drivers/xen/pciback/conf_space.c                |   34 ++--
 drivers/xen/pciback/conf_space.h                |   30 ++--
 drivers/xen/pciback/conf_space_capability.c     |    5 +-
 drivers/xen/pciback/conf_space_capability.h     |    3 +
 drivers/xen/pciback/conf_space_capability_msi.c |   84 +++++++++++
 drivers/xen/pciback/conf_space_capability_pm.c  |    4 +-
 drivers/xen/pciback/conf_space_capability_vpd.c |    2 +-
 drivers/xen/pciback/conf_space_header.c         |    7 +-
 drivers/xen/pciback/conf_space_quirks.c         |   16 +-
 drivers/xen/pciback/controller.c                |   15 +-
 drivers/xen/pciback/passthrough.c               |    6 +-
 drivers/xen/pciback/pci_stub.c                  |  180 ++++++++++++-----------
 drivers/xen/pciback/pciback.h                   |   34 ++++-
 drivers/xen/pciback/pciback_ops.c               |   64 +++++----
 drivers/xen/pciback/slot.c                      |   22 ++-
 drivers/xen/pciback/vpci.c                      |   28 ++--
 drivers/xen/pciback/xenbus.c                    |   42 +++---
 drivers/xen/xenbus/xenbus_xs.c                  |  130 ++++++++++++++++
 include/xen/xenbus.h                            |    2 +
 21 files changed, 538 insertions(+), 224 deletions(-)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel