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 1/2] VT-d: pci code cleanup

To: 'Keir Fraser' <Keir.Fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 1/2] VT-d: pci code cleanup
From: "Han, Weidong" <weidong.han@xxxxxxxxx>
Date: Fri, 19 Jun 2009 13:50:20 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "'xen-devel@xxxxxxxxxxxxxxxxxxx'" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 18 Jun 2009 22:51:13 -0700
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
Thread-index: AcnwodUVEhuGdtK6QKSZIi3ffLJukw==
Thread-topic: [Xen-devel] [PATCH 1/2] VT-d: pci code cleanup
This patch moves the pci code from iommu.c to pci.c. Instead of setup pci 
hierarchy in array bus2bridge in iommu_context_mapping, use scan_pci_devices 
once to add all existed PCI devices in system to alldevs_list and setup pci 
hierarchy in array bus2bridge. In addition, implement find_upstream_bridge to 
find the upstream PCIe-to-PCI/PCIX bridge or PCI legacy bridge for a PCI 
device, therefore it's cleanly to handle context map/unmap for PCI device, even 
for source-id setting.

Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>

Attachment: pci.patch
Description: pci.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 1/2] VT-d: pci code cleanup, Han, Weidong <=