From mboxrd@z Thu Jan 1 00:00:00 1970 From: Weidong Han Subject: Re: RE: xl fails to work with some command Date: Tue, 31 Aug 2010 15:07:08 +0800 Message-ID: <4C7CAA1C.1030902@intel.com> References: <749B9D3DBF0F054390025D9EAFF47F222A060143@shsmsx501.ccr.corp.intel.com> <749B9D3DBF0F054390025D9EAFF47F222A060CFB@shsmsx501.ccr.corp.intel.com> <749B9D3DBF0F054390025D9EAFF47F222A060E65@shsmsx501.ccr.corp.intel.com> <4C760542.7080003@intel.com> <20100826135017.GA3792@phenom.dumpdata.com> <4C770710.1040604@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: "Zhang, Yang Z" , Ian Campbell , "xen-devel@lists.xensource.com" , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org Stefano Stabellini wrote: > On Fri, 27 Aug 2010, Weidong Han wrote: > >>>>> Yes, give a look at libxl_device_pci_reset: first libxl tries to use the >>>>> pciback sysfn node "do_flr", but if it is not present it will use the >>>>> standard linux sysfs "reset" node. >>>>> Please note that on pvops kernels the do_flr node is not present (but it >>>>> is present on both XCP and XCI kernels) while the reset node points to >>>>> pci_reset_function. >>>>> >>>>> >>>> I am all up for receiving the patches from XCP/XCI for this >>>> >>>> >>>> >>> I think that using the standard linux reset mechanism is a better way to >>> handle this as oppose to have our own do_flr method. >>> >>> >> Pls note that there are some specific FLR functions for graphics >> pass-through. They should be ported to xl. >> >> > > As stated above, xl doesn't know how to FLR a device, the dom0 kernel > provides a way to do it. > XCP kernels have pciback do_flr that has all the HW specific FLR > functions you are referring to AFAIK, but the pvops kernel, that uses > the standard reset node, does not. > > So it should implement specific FLRs in pciback like XCP/XCI. Regards, Weidong