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] xend: passthrough: check if a device is behind PCIe

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] xend: passthrough: check if a device is behind PCIe switch that lacks ACS
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Wed, 19 Aug 2009 10:26:58 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
Delivery-date: Tue, 18 Aug 2009 19:27: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: AcogdIbOKDMgRUkBTHGmJiluq0yLOw==
Thread-topic: [PATCH] xend: passthrough: check if a device is behind PCIe switch that lacks ACS
Imagine a PCIe switch, which doesn't support ACS (Access Control Services),
has 2 downstream ports: A and B, according to PCIe spec, the PCIe switch
should directly route the transaction that is from A and to a device under
B -- the Root Complex and IOMMU engine are bypassed -- this doesn't work at
all in the case of hvm guest and can even incur potential security issue, so
we should not allow such kind of device assignment.

If all the intermediate PCIe swiches between a device and Root Complex support
and enable ACS, we can safely asssign the device to guest.
Allen Kay will enable ACS later.

Thanks,
-- Dexuan


Attachment: check_dev_behind_switch.patch
Description: check_dev_behind_switch.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>