Sergey Tovpeko
2010-Jul-07 08:27 UTC
[Xen-devel] [PATCH] xl, fix for short BDF (without domain specified)
Hi, this patch fixes cases where an user sets pci device not mentioning its domain, ex. pci = [''01:00.0''] At now, xl recognizes this string as domain = 1, bus = 0, device = 0 func = 0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Stefano Stabellini
2010-Jul-07 11:07 UTC
Re: [Xen-devel] [PATCH] xl, fix for short BDF (without domain specified)
On Wed, 7 Jul 2010, Sergey Tovpeko wrote:> Hi, > > this patch fixes cases where an user sets pci device not mentioning its > domain, ex. > pci = [''01:00.0''] > > At now, xl recognizes this string as > domain = 1, > bus = 0, > device = 0 > func = 0 > >the test on the return value should be "< 5", otherwise it wouldn''t work if you use pci = [''01:00.0@0''] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Sergey Tovpeko
2010-Jul-07 12:43 UTC
Re: [Xen-devel] [PATCH] xl, fix for short BDF (without domain specified)
Oh, too many input cases. Below patch tries to recognize the following input: pci = [''0001:02:03.4@5''] pci = [''0001:02:03.4''] pci = [''02:03.4@5''] pci = [''02:03.4''] Hope so. Stefano Stabellini wrote:> > the test on the return value should be "< 5", otherwise it wouldn''t work > if you use > > pci = [''01:00.0@0''] > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Stefano Stabellini
2010-Jul-07 17:02 UTC
Re: [Xen-devel] [PATCH] xl, fix for short BDF (without domain specified)
On Wed, 7 Jul 2010, Sergey Tovpeko wrote:> Oh, too many input cases. > > Below patch tries to recognize the following input: > pci = [''0001:02:03.4@5''] > pci = [''0001:02:03.4''] > pci = [''02:03.4@5''] > pci = [''02:03.4''] > > Hope so. >this one looks good, thanks. Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel