|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] FLR support in xl tool stack
To: |
"Kay, Allen M" <allen.m.kay@xxxxxxxxx> |
Subject: |
Re: [Xen-devel] FLR support in xl tool stack |
From: |
Jean Guyader <jean.guyader@xxxxxxxxx> |
Date: |
Fri, 28 Jan 2011 09:50:24 +0530 |
Cc: |
xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>, Wilk <konrad.wilk@xxxxxxxxxx>, Jean Guyader <jean.guyader@xxxxxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>, Thomas Horsten <thomas.horsten@xxxxxxxxxx>, Ross Philipson <Ross.Philipson@xxxxxxxxxx> |
Delivery-date: |
Thu, 27 Jan 2011 20:21:16 -0800 |
Dkim-signature: |
v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=J2hHjZSel2uFKlpBEJyXrIPAZJrbtiU0p/kFq8tvVIk=; b=BVb2q67IZnkFRzw6xiBaD7koEvQ5LNC5LT0Rs2SdhULL9CZcd9HFHLyGIjAWh2AupC 3cp7DGgX2Kn18nQepopVAurODFbzmVgAIkjlObmJ6R2tdsNw5E5dAa1Q4bGXtvnsKHUT LjiDQkHExB/lXSnuuFR7RTH/2QpxA0NtBWr/M= |
Domainkey-signature: |
a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=hbjZIuC/wG95n3Ci4Eu4spzuqGkVKEu56GIKnVosqWmkrGpVyH9YzCYPUgBugN3JFz 3F5ocHwHAPuHqXQuzhjK47hrTqGKoZeKt23n/7x4JsHBXbNQg4+z/tDEhNZ8FYQwdsYb pGddhZg8hfB5T0oj7Ggqy+chu2sKN7i2i0b0s= |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<987664A83D2D224EAE907B061CE93D53019438F9F8@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
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> |
References: |
<987664A83D2D224EAE907B061CE93D53019438F9F8@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
On 28 January 2011 08:38, Kay, Allen M <allen.m.kay@xxxxxxxxx> wrote:
> In xm tool stack, there is a function called do_FLR() located in
> python/xen/util/pci.py that takes care of issuing FLR to passthrough PCI
> devices. This function is responsible for looking at the device and figure
> out the most appropriate way to reset the device (PCI/PCIe FLR, secondary bus
> reset, etc...).
>
> In xl tool stack, I see there is a libxl_device_pci_reset() in
> libxl/libxl_pci.c that suppose to do the similar thing. It references
> /sys/bus/pci/drivers/pciback/do_flr and tries to write something to it.
> However, pciback driver in 2.6.32.27 pvops kernel does not seem to have this
> do_flr functionality.
>
> Is this something being worked on but not checked in to pvops dom0 kernel yet?
>
> If not, I would prefer implementing all of the do_FLR() functionaility in
> libxl and not to depend on pciback driver given it is not part of the
> upstream kernel. This will make using newer kernels such as 2.6.38 much
> easier.
>
> Comments?
>
On the newest kernels (I don't know from which version), the reset
function has been moved under the pci device tree directly. So
/sys/bus/pci/device/<BDF>/reset.
Jean
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|