From: Konrad Rzeszutek Wilk Subject: [PATCH PV_OPS PCIBACK] Date: Thu, 5 Nov 2009 15:25:39 -0500 Message-ID: <1257452744-18243-1-git-send-email-konrad.wilk@oracle.com> Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Jeremy Fitzhardinge List-Id: xen-devel@lists.xenproject.org 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(-)