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/
Home Products Support Community News


[Xen-devel] [PATCH] pciback: configuration space handlers for capability

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] pciback: configuration space handlers for capability list structures
From: Ryan <hap9@xxxxxxxxxxxxxx>
Date: Wed, 26 Apr 2006 16:04:19 -0400
Delivery-date: Wed, 26 Apr 2006 13:04:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
This patch adds the ability to have restricted write access to some
of the structures on the capability list. Specifically, this patch adds
support for reading data through the Vital Product Data capability
structure and for manipulating power management of a card. A driver
domain is not allowed to enable Power Management Events (the PME trace
may be shared across devices in many domains), but it can put a device
in its control to sleep or query it for power usage statistics. This
code could possibly be expanded in the future to add support for AGP,
PCI-X, and MSI/MSIX (all of which are controlled through structures on
the capability list).

This patch also corrects some formatting issues in the PCI backend and
adds some comments to the code regarding permissive mode.

This patch was previously submitted as part of a larger patch. There
have been no significant changes; just made this code independent of the
larger patch.

Signed-off-by: Ryan Wilson <hap9@xxxxxxxxxxxxxx>


 b/linux-2.6-xen-sparse/drivers/xen/pciback/conf_space_capability.c     |   71 
 b/linux-2.6-xen-sparse/drivers/xen/pciback/conf_space_capability.h     |   23 +
 b/linux-2.6-xen-sparse/drivers/xen/pciback/conf_space_capability_pm.c  |  113 
 b/linux-2.6-xen-sparse/drivers/xen/pciback/conf_space_capability_vpd.c |   42 
 linux-2.6-xen-sparse/drivers/xen/pciback/Makefile                      |    5 
 linux-2.6-xen-sparse/drivers/xen/pciback/conf_space.c                  |  116 
 linux-2.6-xen-sparse/drivers/xen/pciback/conf_space.h                  |   38 
 linux-2.6-xen-sparse/drivers/xen/pciback/conf_space_header.c           |   56 
 linux-2.6-xen-sparse/drivers/xen/pciback/pci_stub.c                    |   49 
 linux-2.6-xen-sparse/drivers/xen/pciback/pciback.h                     |    8 
 linux-2.6-xen-sparse/drivers/xen/pciback/pciback_ops.c                 |    2 
 11 files changed, 443 insertions(+), 80 deletions(-)

Attachment: conf_space_capability.patch
Description: Text Data

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] pciback: configuration space handlers for capability list structures, Ryan <=