xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Re: [Xen-devel] [PATCH V3 2/2] Xen/PCIback: Implement PCI flr/slot/bus reset with 'reset' SysFS attribute
@ 2020-01-17 19:13 Rich Persaud
  2020-01-23  9:12 ` Pasi Kärkkäinen
  2020-01-31 15:33 ` Wei Liu
  0 siblings, 2 replies; 9+ messages in thread
From: Rich Persaud @ 2020-01-17 19:13 UTC (permalink / raw)
  To: Pasi Kärkkäinen, xen-devel, Boris Ostrovsky
  Cc: Juergen Gross, Wei Liu, Konrad Rzeszutek Wilk, Andrew Cooper,
	Paul Durrant, Jason Andryuk, George Dunlap,
	Marek Marczykowski-Górecki, Anthony Perard, Jan Beulich,
	bhelgaas, Ian Jackson, Roger Pau Monné,
	Håkon Alstadheim


[-- Attachment #1.1: Type: text/plain, Size: 3441 bytes --]

On Aug 26, 2019, at 17:08, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> Hi,
> 
>> On Mon, Oct 08, 2018 at 10:32:45AM -0400, Boris Ostrovsky wrote:
>>> On 10/3/18 11:51 AM, Pasi Kärkkäinen wrote:
>>> On Wed, Sep 19, 2018 at 11:05:26AM +0200, Roger Pau Monné wrote:
>>>> On Tue, Sep 18, 2018 at 02:09:53PM -0400, Boris Ostrovsky wrote:
>>>>> On 9/18/18 5:32 AM, George Dunlap wrote:
>>>>>>> On Sep 18, 2018, at 8:15 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:
>>>>>>> Hi,
>>>>>>> On Mon, Sep 17, 2018 at 02:06:02PM -0400, Boris Ostrovsky wrote:
>>>>>>>> What about the toolstack changes? Have they been accepted? I vaguely
>>>>>>>> recall there was a discussion about those changes but don't remember how
>>>>>>>> it ended.
>>>>>>> I don't think toolstack/libxl patch has been applied yet either.
>>>>>>> "[PATCH V1 0/1] Xen/Tools: PCI reset using 'reset' SysFS attribute":
>>>>>>> https://lists.xen.org/archives/html/xen-devel/2017-12/msg00664.html
>>>>>>> "[PATCH V1 1/1] Xen/libxl: Perform PCI reset using 'reset' SysFS attribute":
>>>>>>> https://lists.xen.org/archives/html/xen-devel/2017-12/msg00663.html
>>>>> Will this patch work for *BSD? Roger?
>>>> At least FreeBSD don't support pci-passthrough, so none of this works
>>>> ATM. There's no sysfs on BSD, so much of what's in libxl_pci.c will
>>>> have to be moved to libxl_linux.c when BSD support is added.
>>> Ok. That sounds like it's OK for the initial pci 'reset' implementation in xl/libxl to be linux-only..
>> 
>> Are these two patches still needed? ISTR they were  written originally
>> to deal with guest trying to use device that was previously assigned to
>> another guest. But pcistub_put_pci_dev() calls
>> __pci_reset_function_locked() which first tries FLR, and it looks like
>> it was added relatively recently.
> 
> Replying to an old thread.. I only now realized I forgot to reply to this message earlier.
> 
> afaik these patches are still needed. Håkon (CC'd) wrote to me in private that
> he gets a (dom0) Linux kernel crash if he doesn't have these patches applied.
> 
> 
> Here are the links to both the linux kernel and libxl patches:
> 
> 
> "[Xen-devel] [PATCH V3 0/2] Xen/PCIback: PCI reset using 'reset' SysFS attribute":
> https://lists.xen.org/archives/html/xen-devel/2017-12/msg00659.html
> 
> [Note that PATCH V3 1/2 "Drivers/PCI: Export pcie_has_flr() interface" is already applied in upstream linux kernel, so it's not needed anymore]
> 
> "[Xen-devel] [PATCH V3 2/2] Xen/PCIback: Implement PCI flr/slot/bus reset with 'reset' SysFS attribute":
> https://lists.xen.org/archives/html/xen-devel/2017-12/msg00661.html
> 
> 
> "[Xen-devel] [PATCH V1 0/1] Xen/Tools: PCI reset using 'reset' SysFS attribute":
> https://lists.xen.org/archives/html/xen-devel/2017-12/msg00664.html
> 
> "[Xen-devel] [PATCH V1 1/1] Xen/libxl: Perform PCI reset using 'reset' SysFS attribute":
> https://lists.xen.org/archives/html/xen-devel/2017-12/msg00663.html

[dropping Linux mailing lists]

What is required to get the Xen patches merged?  Rebasing against Xen master?  OpenXT has been carrying a similar patch for many years and we would like to move to an upstream implementation.  Xen users of PCI passthrough would benefit from more reliable device reset.

  2017 thread, including OpenXT patch: https://lists.gt.net/xen/devel/492945
  2017-2019 thread: https://lists.gt.net/xen/devel/532648

Rich

[-- Attachment #1.2: Type: text/html, Size: 10134 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <5A377E020200007800197FFA@prv-mh.provo.novell.com>]

end of thread, other threads:[~2020-10-19 23:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-17 19:13 [Xen-devel] [PATCH V3 2/2] Xen/PCIback: Implement PCI flr/slot/bus reset with 'reset' SysFS attribute Rich Persaud
2020-01-23  9:12 ` Pasi Kärkkäinen
2020-01-31 15:33 ` Wei Liu
2020-10-19 11:00   ` George Dunlap
2020-10-19 15:16     ` Håkon Alstadheim
2020-10-19 15:52       ` Håkon Alstadheim
2020-10-19 22:43         ` Rich Persaud
2020-10-19 23:49           ` boris.ostrovsky
     [not found] <5A377E020200007800197FFA@prv-mh.provo.novell.com>
     [not found] ` <559ffd12-b541-8a69-60bd-fbe10e3dc159@oracle.com>
     [not found]   ` <20180916114306.GF18222@reaktio.net>
     [not found]     ` <a726840b-8a5c-0890-73c6-3a95a7205153@oracle.com>
     [not found]       ` <20180918071519.GG18222@reaktio.net>
     [not found]         ` <5E7DDB68-4E68-48A5-AEEC-EE1B21A50E9E@citrix.com>
     [not found]           ` <352310b3-ec9b-2ceb-83f0-4550718120c3@oracle.com>
     [not found]             ` <20180919090526.s3ahnemrt2ik2tx3@mac.bytemobile.com>
     [not found]               ` <20181003155104.GH5318@reaktio.net>
     [not found]                 ` <f6b8e055-7afc-b4de-af88-425d799dcd28@oracle.com>
2019-08-26 21:05                   ` Pasi Kärkkäinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).